- MCP_understanding
Content
MCP_understanding
Installation steps
- pip install uv
- uv init MCP_servers_and_a2a_utils
- uv run mcp install main.py
- uv run mcp
Sample Demo App
Sample Config File
MCP Logs Location
- Path : /Users/welcome/Library/Logs/Claude/
(mcp_python_ws) welcome@jaisairams-Laptop Claude % pwd
/Users/welcome/Library/Logs/Claude
(mcp_python_ws) welcome@jaisairams-Laptop Claude % ls -ltr
total 784
-rw-r--r-- 1 welcome staff 133561 Mar 28 00:46 mcp-server-greeter.log
-rw-r--r-- 1 welcome staff 64782 Mar 28 00:46 mcp-server-weather.log
-rw-r--r-- 1 welcome staff 150576 Mar 28 00:46 mcp.log
(mcp_python_ws) welcome@jaisairams-Laptop Claude %
(mcp_python_ws) welcome@jaisairams-Laptop Claude % tail -20f mcp-server-greeter.log
2025-03-28T04:47:13.383Z [greeter] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":123}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:13.385Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":123,"result":{"prompts":[]}}
2025-03-28T04:47:19.333Z [greeter] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":124}
[03/28/25 00:47:19] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:19.337Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":124,"result":{"resources":[]}}
2025-03-28T04:47:19.337Z [greeter] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":125}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:19.339Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":125,"result":{"prompts":[]}}
2025-03-28T04:47:24.332Z [greeter] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":126}
[03/28/25 00:47:24] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:24.336Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":126,"result":{"resources":[]}}
2025-03-28T04:47:24.336Z [greeter] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":127}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:24.338Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":127,"result":{"prompts":[]}}
2025-03-28T04:47:29.333Z [greeter] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":128}
[03/28/25 00:47:29] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:29.337Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":128,"result":{"resources":[]}}
2025-03-28T04:47:29.338Z [greeter] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":129}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:29.339Z [greeter] [info] Message from server: {"jsonrpc":"2.0","id":129,"result":{"prompts":[]}}
^Z
zsh: suspended tail -20f mcp-server-greeter.log
(mcp_python_ws) welcome@jaisairams-Laptop Claude % tail -20f mcp-server-weather.log
2025-03-28T04:47:24.336Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":129}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:24.338Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":129,"result":{"prompts":[]}}
2025-03-28T04:47:29.334Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":130}
[03/28/25 00:47:29] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:29.337Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":130,"result":{"resources":[]}}
2025-03-28T04:47:29.338Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":131}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:29.339Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":131,"result":{"prompts":[]}}
2025-03-28T04:47:34.335Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":132}
[03/28/25 00:47:34] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:34.340Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":132,"result":{"resources":[]}}
2025-03-28T04:47:34.341Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":133}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:34.343Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":133,"result":{"prompts":[]}}
2025-03-28T04:47:39.333Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":134}
[03/28/25 00:47:39] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:39.336Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":134,"result":{"resources":[]}}
2025-03-28T04:47:39.337Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":135}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:39.339Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":135,"result":{"prompts":[]}}
2025-03-28T04:47:44.330Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":136}
[03/28/25 00:47:44] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:44.335Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":136,"result":{"resources":[]}}
2025-03-28T04:47:44.335Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":137}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:44.337Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":137,"result":{"prompts":[]}}
2025-03-28T04:47:49.332Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":138}
[03/28/25 00:47:49] INFO Processing request of type server.py:534
ListResourcesRequest
2025-03-28T04:47:49.339Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":138,"result":{"resources":[]}}
2025-03-28T04:47:49.340Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":139}
INFO Processing request of type server.py:534
ListPromptsRequest
2025-03-28T04:47:49.347Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":139,"result":{"prompts":[]}}
References
- https://medium.com/data-and-beyond/the-model-context-protocol-mcp-the-ultimate-guide-c40539e2a8e7
- https://github.com/coleam00/ottomator-agents/blob/main/nba-agent/nba_agent.py
- https://www.youtube.com/watch?v=v_6EXt6T83I
- https://modelcontextprotocol.io/introduction
- https://github.com/coleam00/ottomator-agents/tree/main/pydantic-ai-mcp-agent
Example References
- https://www.dremio.com/blog/building-a-basic-mcp-server-with-python/
- https://github.com/HeetVekariya/Linear-Regression-MCP
- https://github.com/singlestore-labs/mcp-server-singlestore
- https://github.com/jlowin/fastmcp
- https://github.com/awslabs/mcp/blob/main/src/aws-documentation-mcp-server/awslabs/aws_documentation_mcp_server/server.py
MCP workshop here
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Amap Maps高德地图官方 MCP Server
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Tavily Mcp
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Serper MCP ServerA Serper MCP Server