Skip to main content

Data Commons MCP Server

mcp-name: io.github.therealtimex/un-datacommons-mcp

This is a Model Context Protocol (MCP) server for fetching public statistical data from Data Commons instances.

Data Commons is an open knowledge repository that provides a unified view across multiple public data sets and statistics. This server allows any MCP-enabled agent or client to query the Data Commons knowledge graph.

Features

  • MCP-Compliant: Implements the Model Context Protocol for seamless agent integration.
  • Data Commons Access: Fetches public statistics and data from the base datacommons.org knowledge graph.
  • Custom Instance Support: Can be configured to work with Custom Data Commons instances.
  • Flexible Serving: Runs over both streamable HTTP and stdio.

Quickstart

Prerequisites

  1. You must have a Data Commons API key; create one at apikeys.datacommons.org.
  2. Install uv by following the official installation instructions.

Configuration

Set the following required environment variable in your shell:

export DC_API_KEY=<your API key>

Start the server

Run the server from your command line in one of two modes:

Streamable HTTP

This runs the server with Streamable HTTP.

# Runs on default port 8080
uvx un-datacommons-mcp serve http [--port <PORT>]

The server will be available at http://localhost:<port>/mcp.

stdio

This transport mode is intended for local integrations and is programmatically configured within a client (like Gemini CLI settings) to communicate over stdio.

uvx un-datacommons-mcp serve stdio

Clients

You can use any MCP-enabled agent or client to connect to your running server. For example, see the Data Commons MCP documentation for guides on connecting:

Or see your preferred client's documentation for how to configure it, using the commands listed above.

Advanced Configuration

Using MCP Tools with a Custom Data Commons

Follow the Guide for using MCP Tools with Custom Data Commons to set additional environment variables required for custom configuration.

Metadata

Release files for un-datacommons-mcp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for un-datacommons-mcp 1.0.1
File Size Uploaded
un_datacommons_mcp-1.0.1.tar.gz 184.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for un-datacommons-mcp 1.0.1
File Interpreter ABI Platform
un_datacommons_mcp-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 360.5 kB

Release files / un_datacommons_mcp-1.0.1.tar.gz

Download URL un_datacommons_mcp-1.0.1.tar.gz
Size 184.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bf607e28f808c1705e47f7d1848f6944b98fac5100b2a80d3658d0ba55f485df
BLAKE2b-256 checksum
How to use checksums
00781262436ce8953c13c1b80a93d6205b36ec54c44af158d5cb079b1009e78d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / un_datacommons_mcp-1.0.1-py3-none-any.whl

Download URL un_datacommons_mcp-1.0.1-py3-none-any.whl
Size 176.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b49634dc11808bfa82601373aac214c37c923706fb418a6e7b6507e5da5a44d
BLAKE2b-256 checksum
How to use checksums
804981a2bc907c158525030a9ade6774e7f669dc6b4646dc331039e5c786727d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page