MCP.so
登录

MCP Server Fastapi

@Dhiraj123-star

基本信息

分类

开发工具

传输方式

stdio

作者

Dhiraj123-star

关于 MCP Server Fastapi

暂无概览

MCP Server Fastapi 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "MCP_server_fastapi": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "-r",
        "pyproject.toml"
      ]
    }
  }
}

MCP Server Fastapi 工具

工具列表暂未提供

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

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

概览

What is MCP_server_fastapi?

MCP_server_fastapi is a Model Context Protocol (MCP) server that exposes tools (such as a weather tool) for AI assistants to call. It is built for developers who want to integrate MCP tools into their applications using a Python stack.

How to use MCP_server_fastapi?

Install dependencies with uv pip install -r pyproject.toml. Run the server via python src/server.py or uv run start. Test and debug tools locally using the MCP Inspector: mcp dev ./src/weather.py.

Key features of MCP_server_fastapi

  • Dependency management with uv for faster installation
  • Supports both Python and uv run commands
  • Debugging with MCP Inspector
  • Requires Python 3.12+
  • Includes a weather tool (indicated by weather.py)

Use cases of MCP_server_fastapi

  • Providing weather data to AI assistants via MCP
  • Building custom MCP tools with Python and testing locally
  • Integrating MCP tools into LLM applications

常见问题

1

What are the requirements to run the server?

Python 3.12+, `uv` installed, and the `mcp` CLI installed.

2

How do I install the dependencies?

Run `uv pip install -r pyproject.toml` in the project root.

3

How do I start the server?

You can run `python src/server.py` or `uv run start`.

4

How do I test or debug a tool locally?

Use the MCP Inspector with `mcp dev ./src/weather.py`.

5

What runtime environment does the server use?

The server runs on Python and uses `uv` for package management.

评论

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