F

FastMCP

MCP 生态 热度 72 收录 2026-11-01
访问官网 ↗ GitHub 仓库 ↗

简介

最流行的 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 可调用的封装

快速上手

  1. pip install fastmcp,用 @mcp.tool() 装饰一个函数
  2. mcp.run() 启动,用 Inspector 或 fastmcp dev 连上去调
  3. 补上参数类型注解与 docstring(模型靠它判断何时调用)
  4. 需要远程访问时改用 SSE/HTTP transport 并加鉴权

标签

MCP开发框架Python

相关资源

L
Agent

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.

热度 86 详情 →
M
MCP

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.

热度 86 详情 →
P
MCP

Playwright MCP

微软官方的浏览器自动化 MCP Server,让 Agent 可以操作网页、填表、截图、跑端到端测试,网页 Agent 开发必备。Microsoft's official MCP server for browser automation: let agents browse, fill forms, screenshot and run E2E tests.

MCP浏览器自动化微软测试
热度 66 详情 →
↑