Skip to main content
Glama
brockwebb

Open Census MCP Server

by brockwebb
test_geoadvisor.py•644 B
#!/usr/bin/env python3 from utils.geoadvisor import GeoAdvisor def test_geoadvisor(): print("đź§Ş Testing GeoAdvisor...\n") # Initialize with your table data advisor = GeoAdvisor(table_geo_file="../data/table_geos.json", geo_weight_file="../data/geo_weights.json" ) # Simple test result = advisor.recommend("B01001_001E", "tract") print(f"B01001_001E at tract level: {result['status']}") print(f"Message: {result['message']}") # Show stats stats = advisor.get_stats() print(f"\nLoaded {stats['tables_loaded']} tables") if __name__ == "__main__": test_geoadvisor()

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/brockwebb/open-census-mcp-server'

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