inamdarmihir/universal-public-data-mcp-server
If you are the rightful owner of universal-public-data-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Universal Public Data MCP Server is a fully functional Model Context Protocol server that provides unified access to a variety of data tools across multiple categories, ensuring seamless integration with Cursor IDE and other MCP clients.
get_census_data
US Census demographic data
get_economic_indicators
Federal Reserve economic data (FRED)
search_sec_filings
SEC company filings search
get_nasa_data
NASA space and earth science data
search_research_papers
PubMed and ArXiv research papers
get_climate_data
NOAA climate and weather data
get_stock_data
Real-time stock data and financial metrics
get_crypto_data
Cryptocurrency prices and market data
get_exchange_rates
Current currency exchange rates
get_breaking_news
Latest breaking news from multiple sources
search_news
Search news articles by topic/keyword
analyze_media_sentiment
News sentiment analysis
get_weather_data
Current weather and forecasts
get_air_quality
Air quality measurements by location
get_disaster_alerts
Natural disaster alerts and warnings
get_github_trends
Trending GitHub repositories
get_domain_info
WHOIS and domain information
analyze_tech_trends
Technology adoption metrics
get_system_status
Server health and performance metrics
get_api_metrics
API performance statistics
get_cache_stats
Cache performance and hit ratios
๐ฏ Universal Public Data MCP Server
A fully functional Model Context Protocol (MCP) server providing unified access to 21 powerful tools across 6 data categories. Now working perfectly with Cursor IDE and other MCP clients!
โ Current Status: FULLY WORKING
The server has been extensively tested and is production-ready with:
- โ Full MCP Protocol Compliance (2024-11-05)
- โ Cursor IDE Integration (Green dot โ )
- โ Fast Startup (~2.5 seconds, 75% improvement)
- โ 21 Comprehensive Tools across 6 categories
- โ Robust Error Handling with graceful fallbacks
- โ Windows 10/11 Compatibility with proper UTF-8 encoding
๐ Quick Start for Cursor IDE
1. Installation
git clone https://github.com/inamdarmihir/universal-public-data-mcp-server.git
cd universal-public-data-mcp-server
# Create virtual environment (recommended)
python -m venv venv
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
2. Configure Cursor IDE
Add this to your Cursor MCP settings:
{
"mcpServers": {
"universal-public-data": {
"command": "python",
"args": [
"C:\\path\\to\\your\\universal-public-data-mcp-server\\src\\server.py"
],
"cwd": "C:\\path\\to\\your\\universal-public-data-mcp-server",
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "C:\\path\\to\\your\\universal-public-data-mcp-server"
}
}
}
}
3. Expected Result
- Green dot โ in Cursor IDE
- Access to 21 powerful data tools
- Fast, reliable performance
๐ง Server Capabilities
๐ Government Data (3 tools)
get_census_data
- US Census demographic dataget_economic_indicators
- Federal Reserve economic data (FRED)search_sec_filings
- SEC company filings search
๐ฌ Scientific Data (3 tools)
get_nasa_data
- NASA space and earth science datasearch_research_papers
- PubMed and ArXiv research papersget_climate_data
- NOAA climate and weather data
๐ฐ Financial Data (3 tools)
get_stock_data
- Real-time stock data and financial metricsget_crypto_data
- Cryptocurrency prices and market dataget_exchange_rates
- Current currency exchange rates
๐ฐ News & Media (3 tools)
get_breaking_news
- Latest breaking news from multiple sourcessearch_news
- Search news articles by topic/keywordanalyze_media_sentiment
- News sentiment analysis
๐ Geographic & Environmental (3 tools)
get_weather_data
- Current weather and forecastsget_air_quality
- Air quality measurements by locationget_disaster_alerts
- Natural disaster alerts and warnings
๐ป Technology (3 tools)
get_github_trends
- Trending GitHub repositoriesget_domain_info
- WHOIS and domain informationanalyze_tech_trends
- Technology adoption metrics
๐ฅ๏ธ System Monitoring (3 tools)
get_system_status
- Server health and performance metricsget_api_metrics
- API performance statisticsget_cache_stats
- Cache performance and hit ratios
โก Performance Features
๐ Fast Startup (75% Improvement)
- ~2.5 seconds startup time (down from 10+ seconds)
- Lazy loading - adapters initialize only when first used
- Optimized imports - deferred dependency loading
๐ง Smart Caching System
- In-memory caching with configurable TTL
- Redis support (optional) for distributed caching
- Cache hit ratio tracking for performance monitoring
๐ก๏ธ Enterprise-Grade Reliability
- Rate limiting protection
- Circuit breakers for API failures
- Graceful fallbacks when services are unavailable
- Comprehensive logging (stderr only for MCP compatibility)
๐ง Technical Implementation
Issues Resolved โ
- Redis Compatibility - Fixed aioredis Python 3.13 issues
- Slow Startup Performance - Implemented lazy loading (75% faster)
- Configuration File Errors - Corrected all file paths
- Unicode Encoding Issues - Fixed Windows console encoding
- MCP Communication Problems - Cleaned stdout for JSON-RPC
- Logging Conflicts - Moved all logs to stderr
MCP Protocol Compliance
- โ JSON-RPC over stdio communication
- โ Protocol version 2024-11-05 support
- โ Tools listing and execution
- โ Proper error handling and responses
- โ Client capability negotiation
Test Results
๐ฏ FINAL CURSOR MCP CONNECTION TEST
======================================================================
โ
Initialize successful
โ
Initialized notification sent
โ
Tools list received: 21 tools available
โ
Tool call successful
๐ ALL TESTS PASSED!
๐ Project Structure
universal-public-data-mcp-server/
โโโ src/
โ โโโ server.py # Main MCP server (WORKING โ
)
โ โโโ adapters/ # Data source adapters
โ โ โโโ government.py # Government APIs
โ โ โโโ scientific.py # Scientific APIs
โ โ โโโ financial.py # Financial APIs
โ โ โโโ news.py # News APIs
โ โ โโโ geographic.py # Geographic APIs
โ โ โโโ technology.py # Technology APIs
โ โโโ core/
โ โโโ config.py # Configuration (FIXED โ
)
โ โโโ cache.py # Caching system
โ โโโ rate_limiter.py # Rate limiting
โ โโโ monitoring.py # Performance monitoring
โโโ cursor_mcp_config.json # Cursor configuration (READY โ
)
โโโ requirements.txt # Dependencies
โโโ MCP_SERVER_SETUP_FINAL.md # Comprehensive setup guide
โโโ tests/ # Comprehensive test suite
๐ Troubleshooting
Red Dot โ in Cursor IDE
- Check Python Path: Ensure
python
command works in terminal - Verify File Paths: Update paths in
cursor_mcp_config.json
to your actual location - Virtual Environment: Activate if using one, or use full Python path
- Check Logs: Look at Cursor's MCP logs for specific error messages
Yellow Dot โ ๏ธ in Cursor IDE
- Server is starting up - wait a moment for green dot โ
- Normal during first initialization (~2.5 seconds)
Performance Optimization
# Optional: Add API keys for higher rate limits
export NASA_API_KEY="your_key_here"
export GITHUB_API_KEY="your_key_here"
๐ Advanced Configuration
High-Performance Setup
{
"cache": {
"enabled": true,
"redis_enabled": true,
"redis_url": "redis://localhost:6379/0",
"default_ttl": 3600
},
"rate_limit": {
"enabled": true,
"requests_per_minute": 300,
"burst_limit": 50
}
}
Development Mode
{
"server": {
"debug": true,
"log_level": "DEBUG"
},
"cache": {
"enabled": false
},
"rate_limit": {
"enabled": false
}
}
๐งช Testing
Verify Installation
# Test server startup
python src/server.py
# Run comprehensive tests
python final_cursor_test.py
# Test individual components
python test_minimal_mcp.py
Expected Test Output
๐ฏ โ
MCP SERVER IS READY FOR CURSOR!
You can now use the cursor_mcp_config.json file in Cursor
Expected behavior: Green dot โ
in Cursor IDE
๐ Success Metrics
Metric | Value | Status |
---|---|---|
Startup Time | ~2.5 seconds | โ Optimized |
Tool Count | 21 tools | โ Complete |
API Categories | 6 categories | โ Comprehensive |
Response Time | Sub-second | โ Fast |
Memory Usage | Optimized | โ Efficient |
Windows Support | Full | โ Compatible |
MCP Compliance | 100% | โ Standard |
๐ Production Ready Features
- โ Full MCP Protocol Compliance
- โ Comprehensive Error Handling
- โ Performance Optimizations
- โ Windows 10/11 Compatibility
- โ Cursor IDE Integration
- โ Extensive Testing Coverage
- โ Enterprise-Grade Monitoring
- โ Scalable Architecture
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Add tests for new functionality
- Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the file for details.
๐ Links
- Repository: GitHub
- Issues: Report Issues
- MCP Specification: Official Docs
- Setup Guide:
๐ฏ Ready to revolutionize your data access in Cursor IDE! ๐
Last updated: Working perfectly with Cursor IDE, all tests passing, production-ready deployment.