kyoofus/dani-mcp-sse-server
If you are the rightful owner of dani-mcp-sse-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
FastAPI-MCP is a tool for automatically exposing FastAPI endpoints as MCP (Model Context Protocol) tools without configuration.
dani-mcp-sse MCP server
FastAPI-MCP๋FastAPI ์๋ํฌ์ธํธ๋ฅผ MCP(Model Context Protocol) ๋๊ตฌ๋ก ์๋ ๋ ธ์ถํ๊ธฐ ์ํ ๊ตฌ์ฑ์ด ํ์ ์๋ ๋๊ตฌ์ ๋๋ค. FastAPI๋ฅผ MCP ์๋ฒ๋ก ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํฉ๋๋ค.
FastAPI MCP ์๋ฒ ํ ์คํธ์ฉ ํ๋ก์ ํธ ๊ตฌ์กฐ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
.
โโ README.md
โโ pyproject.toml
โโ src
โโ dani_mcp_sse_server
โโ __init__.py
โโ server.py
1. ์ค์น
FastAPI๋ฅผ MCP Server๋ก ์ฌ์ฉํ๊ธฐ ์ํด์๋ ํด๋ผ์ด์ธํธ์์ mcp-proxy๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
# fastapi-mcp ์ค์น
uv add fastapi-mcp
# mcp-proxy ์ค์น
# Option 1: With uv (recommended)
uv tool install mcp-proxy
2. cluade_desktop_config.json
claude_desktop_config.json์ ๋ค์์ ์ถ๊ฐํฉ๋๋ค.
{
"mcpServers": {
"my-api-mcp-proxy": {
"command": "mcp-proxy",
"args": ["http://127.0.0.1:8000/mcp"]
}
}
}
3. Server ์คํ
uvicorn์ ์ฌ์ฉํ์ฌ server๋ฅผ ๋ฐ๋ก ์คํํด์ผ ํฉ๋๋ค. pyproject.toml์ scripts๋ฅผ ๋ฑ๋กํฉ๋๋ค.
[project.scripts]
dani-mcp-sse-server = "dani_mcp_sse_server:main"
๋ค์์ ์คํํฉ๋๋ค.
uv run dani-mcp-sse-server