What dependencies are required to run the examples?
Python 3.11, `uv`, the Python packages `mcp[cli]`, `httpx`, `openai`, and `python-dotenv`. Node.js is also required for the MCP Inspector.
@liaokongVFX
基本信息
Model Context Protocol(MCP) 编程极速入门
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"MCP-Chinese-Getting-Started-Guide": {
"command": "uv",
"args": [
"init",
"mcp_getting_started"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
This is a step‑by‑step tutorial that teaches how to build a Model Context Protocol (MCP) server and client from scratch using Python 3.11 and the uv package manager. It focuses on implementing a web‑search tool via the ZhiPu API and integrating it with a large language model like DeepSeek. The guide is designed for developers who want to learn how to connect LLMs to external data sources and tools through MCP.
Follow the tutorial in order: initialize a uv project, install dependencies (mcp[cli], httpx, openai), write an MCP server using FastMCP, run it via uv run web_search.py, debug with the MCP Inspector (npx -y @modelcontextprotocol/inspector or mcp dev), and finally build a client that uses the OpenAI‑compatible API and the MCP SDK to call tools.
FastMCP abstraction.stdio transport to communicate between server and client.ClientSession.Sampling feature for human‑in‑the‑loop approval.Python 3.11, `uv`, the Python packages `mcp[cli]`, `httpx`, `openai`, and `python-dotenv`. Node.js is also required for the MCP Inspector.
Yes, you need a ZhiPu API key for the web‑search tool (obtainable at `bigmodel.cn`) and an API key/compatible endpoint for the LLM (e.g., DeepSeek via `OPENAI_BASE_URL`).
The examples do not persist any data to disk. All state exists only in memory during a single run. No databases or file storage are used.
The examples use `stdio` (standard input/output). The README mentions SSE as an alternative but focuses on `stdio`.
Yes, the client code uses the OpenAI‑compatible API, so any LLM that supports the same interface (e.g., OpenAI, DeepSeek) can be used by changing the `base_url` and model name.

Handl speaks the Model Context Protocol. Your whole billing operation — projects, invoices, clients, reports, approvals — as tools any AI assistant can call, inside your autonomy rules.
🚀 The fast, Pythonic way to build MCP servers and clients.

Model Context Protocol Servers

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi
评论