Skip to main content
Glama
default908 B
# /etc/nginx/conf.d/mcp.conf upstream fastapi_backend { server 127.0.0.1:8000; # ⬅️ uvicorn 이 리슨하는 포트 keepalive 32; } server { listen 80; server_name _; # FQDN 이 있으면 교체 # MCP 전용 (SSE + RPC) location /mcp/ { proxy_pass http://fastapi_backend; proxy_http_version 1.1; proxy_set_header Connection ''; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_buffering off; proxy_read_timeout 86400s; # SSE keep-alive } # 그 밖의 모든 FastAPI 엔드포인트 location / { proxy_pass http://fastapi_backend; proxy_http_version 1.1; proxy_set_header Connection ''; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ilil1/fastapi_mcp_sse'

If you have feedback or need assistance with the MCP directory API, please join our Discord server