Odel
datacommons mcp server

datacommons mcp server

@turnonoData & AnalyticsPythonUpdated 8mo ago

Discover statistical indicators and topics in Data Commons. Retrieve observations for specific var…

Server endpointStreamable HTTP

This is the third-party server itself — Odel doesn't run it. Hitting this URL directly talks straight to the upstream server with no auth or proxying. Connect through Odel to front it with managed auth.

DataCommons MCP Server

A Model Context Protocol (MCP) server for accessing Data Commons API data.

Features

  • Search for indicators and topics
  • Get observations and data
  • Support for various data formats and chart configurations
  • HTTP and stdio transport modes

Installation

Using pip

pip install -r requirements.txt
pip install -e .

Using Docker

docker build -t datacommons-mcp .
docker run -p 8000:8000 datacommons-mcp

Usage

CLI Commands

Start the server in HTTP mode:

python -m datacommons_mcp.cli serve http --host 0.0.0.0 --port 8000

Start the server in stdio mode:

python -m datacommons_mcp.cli serve stdio

Environment Variables

  • GOOGLE_API_KEY: Your Google API key for Data Commons access

Development

Install development dependencies:

pip install -e ".[dev]"

Run tests:

pytest

Format code:

black .
isort .

License

MIT License