Skip to main content
Glama
krunal16-c

Government of Canada Open Data MCP Servers

by krunal16-c
SETUP_COMPLETE.mdβ€’3.9 kB
# Setup Complete! πŸŽ‰ ## Quick Start ### Option 1: Using the Activation Script (Recommended) ```bash cd /Users/krunal/Desktop/gov_mcp ./activate.sh ``` This will activate the virtual environment and show you next steps. ### Option 2: Manual Activation ```bash cd /Users/krunal/Desktop/gov_mcp source venv/bin/activate ``` ## Running the Server Once the environment is activated: ```bash # Start the MCP server python -m gov_mcp.server # Or use the direct entry point gov-mcp-server ``` ## Testing & Validation ```bash # Quick test (verify everything is working) python test_server.py # Full validation python validate.py # Run examples python examples.py ``` ## Project Structure ``` gov_mcp/ β”œβ”€β”€ venv/ ← Virtual environment (created, ready to use) β”œβ”€β”€ gov_mcp/ ← Main package β”‚ β”œβ”€β”€ __init__.py β”‚ β”œβ”€β”€ types.py ← Type definitions β”‚ β”œβ”€β”€ http_client.py ← HTTP client with retry logic β”‚ β”œβ”€β”€ api_client.py ← Open Government API wrapper β”‚ └── server.py ← MCP server implementation β”œβ”€β”€ README.md ← Full documentation β”œβ”€β”€ ARCHITECTURE.md ← Technical architecture β”œβ”€β”€ GETTING_STARTED.md ← Beginner guide β”œβ”€β”€ DEPLOYMENT.md ← Production deployment β”œβ”€β”€ pyproject.toml ← Project config β”œβ”€β”€ requirements.txt ← Dependencies β”œβ”€β”€ .env.example ← Configuration template β”œβ”€β”€ .python-version ← Python version (3.14) β”œβ”€β”€ activate.sh ← Quick activation script β”œβ”€β”€ validate.py ← Validation script β”œβ”€β”€ examples.py ← Usage examples └── test_server.py ← Quick server test ``` ## What's Working βœ… **Virtual Environment** - Python 3.14.0 ready to go βœ… **All Dependencies** - Installed and configured βœ… **7 Core Tools** - All registered and functional βœ… **API Client** - Ready to query Canadian government data βœ… **MCP Server** - Ready to serve tool calls βœ… **Documentation** - Complete and comprehensive βœ… **Testing** - Validation scripts included ## Key Features - πŸ” **Search Datasets** - search_all_infrastructure - πŸ“‹ **Get Schemas** - get_dataset_schema - 🏒 **List Organizations** - list_organizations - πŸ—‚οΈ **Browse Topics** - browse_by_topic - βœ… **Check MCPs** - check_available_mcps - πŸ“‘ **Activity Stream** - get_activity_stream - πŸ’Ύ **Query Data** - basic_datastore_query ## Configuration To customize settings, copy `.env.example` to `.env`: ```bash cp .env.example .env ``` Then edit `.env` with your preferred settings. ## Next Steps 1. **Try the examples:** ```bash python examples.py ``` 2. **Start the server:** ```bash python -m gov_mcp.server ``` 3. **Integrate with Claude/MCP:** Configure your MCP client to use: `gov-mcp-server` 4. **Read the docs:** - `README.md` - Full feature documentation - `ARCHITECTURE.md` - Technical deep dive - `GETTING_STARTED.md` - Beginner friendly guide ## Troubleshooting **Q: Virtual environment not activating?** A: Make sure you're in the project directory: `cd /Users/krunal/Desktop/gov_mcp` **Q: Module import errors?** A: Reinstall dependencies: `pip install -e .` **Q: API connection issues?** A: Check your internet connection and verify API is reachable at https://open.canada.ca/data/api **Q: Python version mismatch?** A: We're using Python 3.14.0. Check with: `python --version` ## Support - πŸ“– Check GETTING_STARTED.md for beginner guide - πŸ—οΈ Check ARCHITECTURE.md for technical details - πŸ“¦ Check README.md for feature documentation - πŸ§ͺ Run validate.py to diagnose issues --- **Version:** 0.1.0 **Status:** βœ… Production Ready **Last Updated:** 2025-11-26

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/krunal16-c/gov-ca-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server