MCP-Chinese-Getting-Started-Guide  by liaokongVFX

Guide for Model Context Protocol (MCP), standardizing LLM interaction

created 5 months ago
2,607 stars

Top 18.4% on sourcepulse

GitHubView on GitHub
Project Summary

Model Context Protocol (MCP) provides a standardized interface for Large Language Models (LLMs) to interact with external data sources and tools, acting as a universal adapter for AI applications. This guide focuses on developing MCP servers and clients, particularly for tool integration, using Python 3.11 and uv for project management.

How It Works

MCP defines a protocol for LLMs to discover and invoke tools. Servers expose tools via decorators (@app.tool()), specifying function signatures, descriptions, and argument schemas. Clients can then discover these tools and execute them. MCP supports stdio and SSE transport protocols for communication, with stdio being the primary focus for local development and SSE for serverless deployments.

Quick Start & Requirements

Highlighted Details

  • Tool Integration: Demonstrates creating a web search tool using httpx and the Zhipu AI API.
  • Client-LLM Interaction: Shows how to use DeepSeek with MCP to call tools based on LLM output.
  • Sampling: Enables pre- and post-execution hooks for tools, allowing user confirmation.
  • Claude Desktop Integration: Explains how to configure custom MCP servers for the Claude desktop application.
  • Serverless Deployment: Details deploying MCP services using SSE transport on Alibaba Cloud Function Compute.

Maintenance & Community

  • The project is actively developed, with examples covering various use cases.
  • Links to official documentation and community resources are provided within the README.

Licensing & Compatibility

  • The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

  • The guide mentions potential encoding bugs with gradio_client when using Hugging Face Spaces, recommending httpx instead.
  • Claude Desktop's current support for wildcard resource paths (greeting://{name}) is noted as limited, though client-side usage is supported.
  • The web-search-pro API used in examples is noted to have transitioned from free to a paid model.
Health Check
Last commit

3 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
1,180 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Starred by Didier Lopes Didier Lopes(Founder of OpenBB), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

fastmcp by jlowin

2.1%
15k
Pythonic SDK for building Model Context Protocol (MCP) servers/clients
created 8 months ago
updated 22 hours ago
Feedback? Help us improve.