MCP.so
登录

Python Workers: FastMCP Example MCP Server

@davila7

基本信息

分类

开发工具

传输方式

stdio

作者

davila7

关于 Python Workers: FastMCP Example MCP Server

暂无概览

Python Workers: FastMCP Example MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Python Workers: FastMCP Example MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Python Workers: FastMCP Example?

This is an example of a Python Worker that uses the FastMCP package, designed for deployment on Cloudflare Workers. It is intended for developers who want to build MCP servers using Python on Workers.

How to use Python Workers: FastMCP Example?

To develop, run npx wrangler@latest dev. To deploy, run npx wrangler@latest deploy. Before deployment, packages must be vendored using Python 3.12 with a special process described in the README.

Key features of Python Workers: FastMCP Example

  • Example of a Python Worker using FastMCP
  • Supports vendored packages for Worker compatibility
  • Requires Python 3.12 for package management
  • Deployment limited to Workers Paid plan
  • Includes testing with pytest and linting with Ruff

Use cases of Python Workers: FastMCP Example

  • Deploying an MCP server on Cloudflare Workers
  • Prototyping FastMCP-based applications in a serverless environment
  • Learning how to vendor Python packages for Workers
  • Testing MCP server functionality with local development

常见问题

1

What is the Worker size limit for this example?

Due to the size of the Worker, this example can only be deployed on the Workers Paid plan. Free plan users will encounter deployment errors because the Worker exceeds the 3MB size limit.

2

What Python version is required for vendoring packages?

Only Python 3.12 works for the vendoring process. Other versions of Python will not work.

3

How do I add additional packages to this example?

You need to install vendored packages using the pyodide build environment. Run the command `pip install -t src/vendor -r vendor.txt` inside the `.venv-pyodide` virtual environment. Re-run this command for any additional packages.

4

How can I test and lint this project?

Run `pytest tests` to execute tests. For linting and formatting, use `ruff check .` and `ruff format .` respectively, after installing Ruff.

评论

开发工具 分类下的更多 MCP 服务器