Skip to main content
Glama

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

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