Overview
The MCP Proxy is a hosted service that sits between your AI agents and MCP servers, providing instant observability without requiring code changes. Simply point your MCP client to our proxy endpoint and gain complete visibility into your agent’s behavior.MCP Proxy Architecture
Request Flow Diagram
How It Works
1. Request Routing
The proxy intelligently routes requests to the appropriate MCP servers:2. Transparent Observability
Every request and response is captured automatically:Request Capture
Complete request data including parameters and context
Response Logging
Full response data with timing and status
Error Tracking
Detailed error information and stack traces
Performance Metrics
Response times, throughput, and resource usage
3. Multi-Tenant Architecture
Secure isolation for multiple workspaces:- Workspace Isolation
- Security
Quick Setup
1. Get Your Proxy URL
From your Agentflare dashboard:1
Navigate to Proxy Settings
Go to Dashboard → Settings → Proxy Configuration
2
Copy Proxy URL
Copy your unique proxy URL:
https://<your-workspace>.agentflare.com/proxy
3
Generate API Key
Create an API key for proxy authentication
4
Configure Servers
Add your MCP servers to the proxy configuration
2. Update Your Client
Modify your MCP client to use the proxy:Server Configuration
1. Add MCP Servers
Configure your MCP servers in the proxy:HTTP/HTTPS Servers
HTTP/HTTPS Servers
WebSocket Servers
WebSocket Servers
Stdio Servers
Stdio Servers
2. Load Balancing
Distribute requests across multiple server instances:Custom Domains
1. Domain Setup
Use your own domain for the proxy:1
Choose Domain
Select a subdomain like
mcp.yourcompany.com
2
Configure DNS
Add a CNAME record pointing to our proxy
3
Upload SSL Certificate
Provide your SSL certificate or use our automatic SSL
4
Verify Setup
Test the custom domain configuration
2. SSL Configuration
Secure your proxy with SSL/TLS:- Automatic SSL
- Custom Certificate
Advanced Features
1. Request Transformation
Modify requests before forwarding:2. Caching Strategy
Improve performance with intelligent caching:Response Caching
Response Caching
Cache Invalidation
Cache Invalidation
3. Rate Limiting
Protect your servers from overload:- Global Limits
- Per-Tool Limits
Monitoring & Debugging
1. Request Tracing
Track requests through the proxy:2. Health Checks
Monitor server health through the proxy:Automated Health Checks
Automated Health Checks
Failure Handling
Failure Handling
Security Best Practices
1. Authentication & Authorization
Always use strong authentication and regularly rotate API keys.
1
API Key Management
Use separate API keys for different environments and applications
2
Regular Rotation
Rotate API keys monthly or after any security incidents
3
Least Privilege
Grant only the minimum permissions required for each use case
4
Monitoring
Monitor API key usage for suspicious activity
2. Network Security
IP Whitelisting
Restrict access to specific IP addresses
VPN Integration
Route traffic through your corporate VPN
Private Networks
Use private networking for sensitive connections
Encryption
Encrypt all data in transit and at rest
Troubleshooting
1. Common Issues
Connection Timeouts
Connection Timeouts
Symptoms: Requests timing out or taking too longSolutions:
- Increase timeout values in proxy configuration
- Check network connectivity between proxy and servers
- Verify server performance and capacity
- Review server logs for bottlenecks
Authentication Failures
Authentication Failures
Symptoms: 401 or 403 errorsSolutions:
- Verify API key is correct and active
- Check server authentication configuration
- Ensure proper headers are being sent
- Review authentication logs
Rate Limiting
Rate Limiting
Symptoms: 429 Too Many Requests errorsSolutions:
- Review rate limiting configuration
- Implement exponential backoff in clients
- Distribute load across multiple servers
- Consider upgrading rate limits
2. Debug Tools
Next Steps
Custom Domains
Set up your own domain for the proxy
Authentication
Configure secure authentication
OTEL Integration
Export observability data
Performance Analytics
Monitor proxy performance
The MCP Proxy provides zero-configuration observability. You can start getting insights immediately without changing your existing code.