What is the purpose of this server?
It provides a reference implementation for combining FastAPI web routing with MCP’s SSE transport, allowing developers to create FastAPI apps that expose both regular web endpoints and MCP tool capabilities.
@panz2018
基本信息
A working example to create a FastAPI server with SSE-based MCP support
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"fastapi-mcp-sse": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/panz2018/fastapi_mcp_sse.git",
"start"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
FastAPI MCP SSE is a Server-Sent Events (SSE) implementation built on the FastAPI framework that integrates the Model Context Protocol (MCP). It demonstrates how to embed MCP SSE endpoints (/sse and /messages/) into a full-featured FastAPI web application while keeping standard web routes like /, /about, and /status separate. This project is designed for developers who want to add MCP capabilities – allowing AI models to access external tools and data – into their FastAPI applications.
You can run the server directly without cloning the repository using uvx --from git+https://github.com/panz2018/fastapi_mcp_sse.git start. For full installation, create a virtual environment with uv venv, activate it, install dependencies with uv pip install -r pyproject.toml, then start the server via python src/server.py or uv run start. The server runs on http://localhost:8000 and provides MCP SSE endpoints at /sse and /messages/ alongside standard web routes. Debugging is done using the MCP Inspector with the command mcp dev ./src/weather.py.
It provides a reference implementation for combining FastAPI web routing with MCP’s SSE transport, allowing developers to create FastAPI apps that expose both regular web endpoints and MCP tool capabilities.
Install the UV Package Manager (a Python package installer in Rust). Python and the dependencies listed in `pyproject.toml` are also required.
Use the MCP Inspector: run `mcp dev ./src/weather.py`, open the inspector at `http://localhost:5173`, set the Transport Type to `SSE` and URL to `http://localhost:8000/sse`, then connect to list and run tools like `get_alerts` or `get_forcast`.

Hermoso is an AI marketing agent and AI ad generator you run from your AI agent: a remote MCP server that researches the ads already winning in your market, makes image and video ads and organic posts in your brand, publ
CronWatch records every run of your scheduled jobs in your own database, and speaks up when one is missed, fails, gets stuck, runs slow or costs too much. CronWatch is free and open-source.
MCP server that lets Claude Code, Cursor or Codex ask you for API keys on a local page and write them to .env. The agent only ever sees key names.

Complete, hosted login, teams, billing and feature flags for your SaaS app, set up by your AI assistant: sign-in and SSO, customer teams and roles, plans and usage limits on Stripe, and feature flags. OAuth sign-in, no A
Modelglass turns "which model should I use?" into a lookup instead of a guess. Seven tools give your agent live pricing across image, language, video, and audio models. Sourced and versioned, not scraped once and forgott
评论