GeneratorsFree
MCP Proxy Configurator
Get a reverse proxy config that serves your manifest and tool endpoints with CORS and rate limits.
Input
Generated Configuration
# Generated by Techorizone
# Include this file inside the http { } block (for example /etc/nginx/conf.d/).
limit_req_zone $binary_remote_addr zone=mcp_limit:10m rate=10r/s;
server {
listen 80;
server_name api.example.com;
# For HTTPS add: listen 443 ssl; plus ssl_certificate and ssl_certificate_key.
# WebMCP manifest discovery
location = /.well-known/mcp.json {
proxy_pass http://localhost:8080/.well-known/mcp.json;
proxy_set_header Host $host;
add_header Access-Control-Allow-Origin "*" always;
add_header Cache-Control "public, max-age=300" always;
}
# WebMCP tool endpoints
location /api/mcp/ {
limit_req zone=mcp_limit burst=20 nodelay;
if ($request_method = OPTIONS) {
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, X-API-Key" always;
add_header Access-Control-Max-Age 86400 always;
return 204;
}
proxy_pass http://localhost:8080/api/mcp/;
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;
# Replace * with your own origins if tools rely on cookies.
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, X-API-Key" always;
}
}
Related Generators tools
About MCP Proxy Configurator
Get a reverse proxy config that serves your manifest and tool endpoints with CORS and rate limits.
How to use
- Fill in the form.
- Watch the preview update as you type.
- Copy the output or download the file.
Good to know
This tool runs in your browser. What you enter is not sent to our server.