Environment Variables
Required. Must include your name and email address in the format:
"Your Name (email@domain.com)"The SEC requires this header for all API requests and will block requests without proper identification.Directory for caching SEC data to improve performance and reduce API calls.
Requests per second limit. SEC allows up to 10 requests per second.
Request timeout in seconds for SEC API calls.
Enable debug logging for troubleshooting.
MCP Client Configuration
Claude Desktop
Configure Claude Desktop by editing~/.config/claude-desktop/config.json:
- Docker Configuration
- Python Configuration
Other MCP Clients
For other MCP-compatible clients, adapt the configuration format but maintain these key elements:Command
How to start the server:
- Docker:
docker run ... - Python:
python -m sec_edgar_mcp.server
Environment
Required environment variables:
SEC_EDGAR_USER_AGENT- Optional performance tuning vars
Advanced Configuration
Custom Cache Configuration
For production or high-volume usage, configure a persistent cache:Rate Limiting Strategy
Timeout Configuration
Adjust timeouts based on your use case:Docker-Specific Configuration
Volume Mounting
Mount a persistent cache volume:Resource Limits
Set resource limits for production:Network Configuration
For proxy or firewall environments:Performance Tuning
Memory Optimization
For memory-constrained environments:Concurrent Processing
Configure concurrent request handling:Security Configuration
Network Security
User Agent Security
Never use fake or misleading User-Agent headers. The SEC requires accurate identification.
Logging Configuration
Enable Debug Logging
Structured Logging
For production environments:Validation
Configuration Validation
Test your configuration:- Docker
- Python
Connection Testing
Verify SEC API connectivity:Troubleshooting Configuration
User-Agent Rejected
User-Agent Rejected
Problem: SEC API returns 403 ForbiddenSolution: Ensure User-Agent includes valid email address:
Rate Limiting Errors
Rate Limiting Errors
Problem: Too many requests errorsSolution: Reduce rate limit:
Cache Permission Issues
Cache Permission Issues
Problem: Cannot write to cache directorySolution: Fix permissions:
Timeout Issues
Timeout Issues
Problem: Requests timing outSolution: Increase timeout: