MCP.so
登录

Mcp Rest Sample

@BeaverHouse

关于 Mcp Rest Sample

Python sample code for MCP server + REST API (FastAPI) integration

基本信息

分类

开发工具

许可证

MIT

运行时

python

传输方式

stdio

发布者

BeaverHouse

配置

暂无标准配置

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

代码仓库

工具

未检测到工具

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

概览

What is Mcp Rest Sample?

Python sample code that demonstrates how to integrate an MCP (Model Context Protocol) server with a FastAPI REST API. It is designed as a template for developers building similar integrations.

How to use Mcp Rest Sample?

Refer to the project's documentation for local development commands (docs/local-commands-python.md) and instructions to run or connect to the MCP server (docs/connect-mcp.md). The project uses uv for dependency management.

Key features of Mcp Rest Sample

  • Uses uv for dependency management.
  • Integrates FastAPI for both the REST API and MCP server.
  • Built with the official Python SDK for MCP.
  • Includes separate documentation for local setup and connection.
  • Structure inspired by another FastAPI MCP SSE project.

Use cases of Mcp Rest Sample

  • Learning how to combine an MCP server with a FastAPI REST API.
  • Starting point for building custom MCP servers with REST endpoints.
  • Reference implementation for using the MCP Python SDK.

FAQ from Mcp Rest Sample

What is the purpose of this project?

It is sample code that shows how to integrate an MCP server with a FastAPI REST API.

What are the main dependencies?

The project depends on Python, FastAPI, the MCP Python SDK, and uses uv for package management.

How do I run the server locally?

See the "Commands for local development" documentation file for detailed instructions.

How do I connect to the MCP server?

Refer to the "How to run or connect to the MCP server" documentation page.

Is there a license?

Yes, the project is licensed under the terms shown in the LICENSE file.

评论

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