by liaokongVFX · MCP Server · ★ 3.4k
Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h
Model Context Protocol(MCP) 编程极速入门 [TOC] 简介 模型上下文协议(MCP)是一个创新的开源协议,它重新定义了大语言模型(LLM)与外部世界的互动方式。MCP 提供了一种标准化方法,使任意大语言模型能够轻松连接各种数据源和工具,实现信息的无缝访问和处理。MCP 就像是 AI 应用程序的 USB-C 接口,为 AI 模型提供了一种标准化的方式来连接不同的数据源和工具。 MCP 有以下几个核心功能: Resources 资源 Prompts 提示词 Tools 工具 Sampling 采样 Roots 根目录 Transports 传输层 因为大部分功能其实都是服务于 Claude 客户端的,本文更希望编写的 MCP 服务器服务与通用大语言模型,所以本文将会主要以“工具”为重点,其他功能会放到最后进行简单讲解。 其中 MCP 的传输层支持了 2 种协议的实现:stdio(标准输入/输出)和 SSE(服务器发送事件),因为 stdio 更为常用,所以本文会以 stdio 为例进行讲解。 本文将会使用 3.11 的 Python 版本,并使用 uv 来管理 Python 项目。同时代码将会在文末放到 Github 上,废话不多说,我们这就开始吧 开发 MCP 服务器 在这一小节中,我们将会实现一个用于网络搜索的服务器。首先,我们先来通过 uv 初始化我们的项目。 uv 官方文档:https://docs.astral.sh/uv/ 然后我们来创建一个叫 文件,来实现我们的服务。MCP 为我们提供了2个对象: 和 , 是更高层的封装,我们这里就来使用它。 实现执行的方法非常简单,MCP 为我们提供了一个 我们只需要将实现函数用这个装饰器装饰即可。函数名称将作为工具名称,参数将作为工具参数,并通过注释来描述工具与参数,以及返回值。 这里我们直接使用智谱的接口,它这个接口不仅能帮我们搜索到相关的结果链接,并帮我们生成了对应链接中文章总结后的内容的,并且现阶段是免费的(目前已经开始收费,0.03元/次),非常适合我们。 官方文档:https://bigmodel.cn/dev/api/search-tool/web-search-pro API Key 生成地址:https://bigmodel.cn/usercenter/proj-mgmt/apikeys python @app.to
| Stars | 3,358 |
| Forks | 206 |
| Category | MCP Server |
| Quality Score | 34.2/100 |
| Open Issues | 6 |
| Last Updated | 2025-04-23 |
| Created | 2025-03-01 |
| Platforms | mcp |
| Est. Tokens | ~349k |
These tools work well together with MCP-Chinese-Getting-Started-Guide for enhanced workflows:
Looking for a MCP-Chinese-Getting-Started-Guide alternative? If you're comparing MCP-Chinese-Getting-Started-Guide with other mcp server tools, these 6 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.
AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Enterprise AI Platform with guardrails, MCP registry, gateway & orchestrator
Make RSS 📰 great again with AI 🧠✨!! 【29元500次sonnet,下方wx扫码联系】
MCPCAN is a centralized management platform for MCP services. It deploys each MCP service using a container de
Explore other popular mcp server tools:
MCP-Chinese-Getting-Started-Guide is Model Context Protocol(MCP) 编程极速入门. It is categorized as a MCP Server with 3.4k GitHub stars.
You can find installation instructions and usage details in the MCP-Chinese-Getting-Started-Guide GitHub repository at github.com/liaokongVFX/MCP-Chinese-Getting-Started-Guide. The project has 3.4k stars and 206 forks, indicating an active community.
The top alternatives to MCP-Chinese-Getting-Started-Guide on Agent Skills Hub include fastapi_mcp, mcp-use, ida-pro-mcp. Each offers a different approach to the same problem space — compare them side-by-side by stars, quality score, and community activity.