We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/upJiang/ai-mcp-study'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# HTTP 重定向到 HTTPS
server {
listen 80;
server_name junfeng530.xyz;
return 301 https://$server_name$request_uri;
}
# HTTPS 主配置
server {
listen 443 ssl http2;
server_name junfeng530.xyz;
# SSL 证书配置
ssl_certificate /etc/letsencrypt/live/junfeng530.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/junfeng530.xyz/privkey.pem;
# SSL 优化配置
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# 安全头
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
# 日志配置
access_log /var/log/nginx/mcp-services-access.log;
error_log /var/log/nginx/mcp-services-error.log;
# MCP 服务路由(动态生成,不需要手动修改)
#
# eventanalyzer
location /mcp/eventanalyzer {
# 默认访问根路径时,代理到 /sse
rewrite ^/mcp/eventanalyzer$ /sse break;
rewrite ^/mcp/eventanalyzer(/.*)?$ $1 break;
proxy_pass http://127.0.0.1:8100;
# 基础代理头
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# SSE 支持(Server-Sent Events)
proxy_buffering off;
proxy_cache off;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding on;
# 长连接超时(SSE 需要)
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
# CORS 支持(如果需要跨域)
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
add_header Access-Control-Allow-Headers 'Content-Type, Authorization' always;
if ($request_method = 'OPTIONS') {
return 204;
}
}
- 这个占位符会被自动替换为实际的 location 块
# 健康检查端点
location /health {
access_log off;
return 200 "OK\n";
add_header Content-Type text/plain;
}
}