Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
FastAPI-native Model Context Protocol framework and stdio runner.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
FASTMCP_LOG_LEVELต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"fast": {
"command": "uvx",
"args": [
"mcp-fastapi"
],
"env": {
"FASTMCP_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add fast --env FASTMCP_LOG_LEVEL='ใส่ค่าของคุณ' -- uvx mcp-fastapiเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"fast": {
"command": "uvx",
"args": [
"mcp-fastapi"
],
"env": {
"FASTMCP_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"fast": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-fastapi"
],
"env": {
"FASTMCP_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
FASTMCP_LOG_LEVEL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Manas-maker ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.0) เข้า registry 34 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Zoo MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
An MCP server that provides access to the Zoo API for various CAD operations and tools.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
FastAPI-native Model Context Protocol (MCP) framework with automatic route reflection, ASGI scope bridging, dynamic progressive tool discovery, resilient error recovery, and interactive in-chat MCP Apps (SEP-1865).
FastAPI instance in-process over standard ASGI—zero external proxying, zero hanging subprocesses.fast-mcp stdio main:app or python -m fast_mcp stdio main:app to connect desktop AI clients (Claude Desktop, Cursor) over standard I/O pipes with zero network setup.tags=["mcp"]) automatically convert FastAPI endpoints, Pydantic models, docstrings, path/query/body parameters into MCP tools.Authorization: Bearer , cookies, API keys) captured during the MCP handshake are bridged into an in-memory ASGI Request, natively resolving FastAPI's Depends() and Security() providers without code changes.dynamic_discovery=True), the search_tools(query: str) meta-tool, and zero-dependency KeywordTagRouter.HTTPException and Pydantic validation errors into informative CallToolResult(isError=True) responses so LLMs can self-correct without protocol failures. Output defaults to compact, token-conscious minified JSON with custom @mcp.serializer formatting hooks./mcp/docs plus native support for in-chat interactive iframes in desktop AI clients (Claude Desktop, Cursor, VS Code) via _meta.ui.resourceUri, the built-in inspect() tool, and the @mcp.app() decorator.pip install mcp-fastapi
Or using uv:
uv add mcp-fastapi
from fastapi import FastAPI, Depends, Header, HTTPException
from pydantic import BaseModel, Field from fast_mcp import FastMCP
app = FastAPI(title="Store API") mcp = FastMCP(app=app, name="store-mcp")
class Product(BaseModel): id: int name: str price: float
@app.get("/products/{product_id}", tags=["mcp"]) async def get_product(product_id: int) -> Product: """Fetch product details by ID.""" if product_id == 404: raise HTTPException(status_code=404, detail="Product not found") return Product(id=product_id, name="Smart Widget", price=29.99)
def verify_token(authorization: str = Header(...)) -> str: if not authorization.startswith("Bearer "): raise HTTPException(status_code=401, detail="Invalid token") return authorization.split(" ")[1]
@mcp.tool(name="order_status", description="Check customer order status") def check_order(order_id: str, user: str = Depends(verify_token)) -> dict: return {"order_id": order_id, "customer": user, "status": "Shipped"}
mcp.mount()
Run with standard ASGI servers:
uvicorn main:app --reload
Routes tagged with tags=["mcp"] (configurable via route_tag) are automatically inspected upon mcp.mount():
@app.post("/items/create", tags=["mcp"])
async def create_item(item: ItemModel) -> ItemModel: """Create a new catalog item.
Args: item: The catalog item specification. """ return item
@mcp.tool)Register AI-specialized tools that don't need dedicated REST endpoints:
# Bare decorator
@mcp.tool def calculate_quote(quantity: int, discount: float = 0.0) -> float: return quantity * 100.0 * (1.0 - discount)
@mcp.tool(name="inventory_lookup", description="Lookup stock levels", tags=["inventory"]) async def check_inventory(sku: str) -> dict: return {"sku": sku, "in_stock": True, "count": 42}
Incoming headers (Authorization: Bearer ..., cookies, API keys) from the MCP client's SSE handshake or message posts are captured into an active request context:
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
security = HTTPBearer()
@mcp.tool async def user_profile(creds: HTTPAuthorizationCredentials = Depends(security)) -> dict: token = creds.credentials return {"user": "alice", "token_verified": True}
If authorization fails or headers are omitted, fast-mcp unwraps the resulting HTTPException(401) into CallToolResult(is_error=True) so the agent receives an actionable authentication error rather than crashing the transport.
Prevent LLM context window bloat on large FastAPI applications with hundreds of endpoints:
mcp = FastMCP(
app=app, dynamic_discovery=True, # Or set dynamic_discovery_threshold=20 baseline_tools=["search_tools", "get_system_status"], baseline_tag="baseline", )
tools/list exposes only baseline tools plus the search_tools(query: str) meta-tool.search_tools(query="invoice") executes the pluggable ToolRouter (defaults to zero-dependency KeywordTagRouter with tokenized name/tag/description ranking) and returns matching tool definitions with full JSON schemas.HTTPException (400, 404, 422) and Pydantic validation errors return clean, concise messages with isError=True.{"id":1,"name":"widget"}) saving prompt tokens.class Report(BaseModel):
title: str metrics: dict[str, int]
@mcp.serializer(Report) def format_report(report: Report) -> str: md = f"### {report.title}\n" for k, v in report.metrics.items(): md += f"- {k}: {v}\n" return md
Open http://localhost:8000/mcp/docs in any browser to inspect registered tools, view schemas, and execute test invocations interactively without external Node.js CLIs. (Disable with FastMCP(app, enable_ui=False)).
Render rich interactive HTML/JS widgets directly in modern desktop AI clients (Claude Desktop, Cursor, VS Code):
# Built-in server inspector tool
inspect() receives an interactive iframe pointed to ui://fast-mcp/inspector@mcp.app( name="dashboard", resource_uri="ui://store/dashboard", html="""
Store Live Metrics Active Users: 1,420
""" ) def live_dashboard() -> str: return ' '
Connect desktop AI clients (Claude Desktop, Cursor) directly to your FastAPI backend or FastMCP instance over standard input/output (stdio) pipes with zero network setup, port conflicts, or external proxying.
# Run stdio runner pointing to FastAPI app or FastMCP instance
fast-mcp stdio main:app
python -m fast_mcp stdio main:app
fast-mcp stdio main
fast-mcp main:app
claude_desktop_config.json)Configure Claude Desktop to launch your FastMCP server directly:
{
"mcpServers": { "my-fast-mcp-app": { "command": "fast-mcp", "args": ["stdio", "main:app"] } } }
Or using uv to manage the virtual environment automatically:
{
"mcpServers": { "my-fast-mcp-app": { "command": "uv", "args": ["run", "fast-mcp", "stdio", "main:app"] } } }
You can also run stdio mode programmatically from Python:
import asyncio
from fast_mcp import FastMCP, run_stdio
mcp = FastMCP(name="my-stdio-server")
@mcp.tool() def add(a: int, b: int) -> int: return a + b
if name == "main": asyncio.run(run_stdio(mcp))
fast-mcp exercises external behavior across the ASGI Protocol Seam using httpx.AsyncClient with ASGITransport:
# Run full test suite
pytest
pytest --cov=fast_mcp --cov-report=term-missing
MIT