FastMCP
简介
最流行的 Python MCP Server 开发框架,几行装饰器即可把函数发布为 MCP 工具,开发效率极高。
English
The popular Pythonic framework for building MCP servers — expose functions as tools with a few decorators.
适用场景
- 用 Python 写 MCP Server,希望几行代码就把函数暴露成工具
- 需要认证、SSE/HTTP 传输与部署方案
- 给自己的内部 API 做一层 AI 可调用的封装
快速上手
- pip install fastmcp,用 @mcp.tool() 装饰一个函数
- mcp.run() 启动,用 Inspector 或 fastmcp dev 连上去调
- 补上参数类型注解与 docstring(模型靠它判断何时调用)
- 需要远程访问时改用 SSE/HTTP transport 并加鉴权
标签
相关资源
LangChain 精选
最流行的 LLM 应用开发框架,提供链式调用、Agent 编排、工具调用与 RAG 全套能力,Python 与 JS 双语言生态,适合快速搭建各类 AI Agent 应用。The most popular framework for building LLM applications: chains, agent orchestration, tool calling and RAG out of the box, in both Python and JavaScript.
Model Context Protocol(MCP) 精选
Anthropic 推出的模型上下文开放协议,已成为 AI 工具调用的事实标准;官方 servers 仓库收录文件系统、搜索、数据库等参考实现。Anthropic's open protocol connecting AI models to tools and data — the de-facto standard, with reference server implementations.
Playwright MCP
微软官方的浏览器自动化 MCP Server,让 Agent 可以操作网页、填表、截图、跑端到端测试,网页 Agent 开发必备。Microsoft's official MCP server for browser automation: let agents browse, fill forms, screenshot and run E2E tests.