Building MCP Server and Client using Python SDK: Step-by-Step Tutorial

preview_player
Показать описание
We discuss on how to build an MCP server and client which support tools, resources and prompts.

Рекомендации по теме
Комментарии
Автор

mcp = FastMCP( name = name, host=host, port=port, timeout=30)

NenuNaAdhya
Автор

Most videos on MCP just show how to connect existing clients like Cursor or Claude Desktop to an MCP server. But the real power of MCP is in building your own custom clients—like a web app or any application tailored to your needs. This is the only video I found that actually dives into that, especially using transport='sse'. Super helpful and exactly what I was looking for. Thanks a ton for making this!

jatinderarora
Автор

A very big big thankyou for this video, it really helped a lot, keep it up! 👏🏻🙏🏻

STEM_Learner
Автор

Thank you so much for this video! I was having a lot of trouble understanding the boundary between server and client and how they worked together and this simple and clear explanation was exactly what I needed.

KarinLin-hr
Автор

thanks a ton man, i was struggling with it so far

Gauranga-rj
Автор

There are two methods 1. list_resources() -> returns list of static resources from server 2. list_resource_templates() -> returns list of dynamic resources from server.

jatinderarora
Автор

Finally i have found this video. This video is very helpfull.
If you have any open source llm model which soupport function calling then tell me or make video. PLEASE !

neoncoderai
Автор

I think you should be able to define the parameters for your function in the doc string of the function itself where u specify what the function is doing

jarvistrinidade
Автор

Bro biggest reson for stdio is that is relatively faster and when you have native task and need to control high throughput tasks stdio is exponentially faster

harpreetkohli
Автор

Sir can you please make video on how can we integrate llm or any agent to work with MCP tools and fully anonymously using python SDK,
If you make efforts for this then great for all your followers
Thank a lot sir

GrassSolutionpvtltd
Автор

Very useful, thanks, wondering how to connect client to multiple servers?

iyadhh
Автор

Very heplful so far.
What if I have a web app and wanted to use github mcp server with my web app how can I do that?

Shashankkumawat
Автор

can you make video on zerodha mcp.... im a trader i have some ideas to build using this can you help me?

lostguy
Автор

. I want to know how to pass additional parameters along with the query.

For example, I have a tool called tool_image that I've converted into an MCP server. This tool requires both a query and a base64-encoded image. I created a Pydantic class on the server side where I defined an image variable. I'm using that image inside the tool_image class as self.image.

In the same Pydantic class, there are several other variables that are used by different tools, such as the LLM model name, etc.

The problem is, when I send a request from the client, I'm only able to send the query. But for the image tool, I need to send both the query and the image. However, when I try to pass both, it treats the entire input as just the query.

Could you please guide me on how to properly pass the query along with other parameters (like image) using a Pydantic class, so that the tool server can correctly parse and use all the required fields

Kunalsharma-cj
Автор

I got 401 Unauthorized error when tried to connect MCP client with MCP server

codewithdev
visit shbcf.ru