analytics.usa.gov MCP Server

analytics.usa.gov MCP Server

Enables LLMs to query and analyze government website analytics from analytics.usa.gov via the Model Context Protocol, supporting single report, multiple reports, and aggregation tools.

Category
Visit Server

README

analytics.usa.gov MCP Server

⚠️ DISCLAIMER: This is a proof of concept and is not intended for production use.

Demo MCP Server for AI Community Of Practice

Overview

This project is a demonstration Model Context Protocol (MCP) server for analytics.usa.gov data, designed to showcase how LLMs can interact with government analytics APIs using the MCP standard. The codebase is structured to start simple and build up in capability:

  • single_report_tool: Provides basic access to a single analytics report at a time, ideal for simple queries and initial integration.
  • multiple_reports_tools: Adds support for fetching and handling multiple reports, allowing more complex queries and comparisons.
  • aggregation_tools: Enables aggregation of analytics data over time periods (week, month, year) and by various dimensions (such as source or agency), supporting more advanced analytics and summarization.

Each tool is registered with the MCP server and can be called by an LLM or other MCP-compatible client. The project is intended as a learning and experimentation platform for building and extending MCP-based analytics APIs.

Quick Start (Recommended)

Option 1: Install via uv

uv tool install git+https://github.com/GSA-TTS/usdc-arc-mcp-demo/

This will install the MCP server as a CLI tool. You can then run:

usdc-arc-mcp-demo

Simple way to connect to Claude

  1. Get the installed tool path:

    which usdc-arc-mcp-demo
    
  2. Copy the path into Claude MCP config:

    {
      "mcpServers": {
        "usdc-arc-mcp-demo": {
          "command": "/path/to/usdc-arc-mcp-demo",
          "args": [],
          "env": {
             "DAP_API_KEY": "your-api-key"
          }
        }
      }
    }
    

Development Setup

Option 2: Using Hatch or uv

Using Hatch

  1. Install Hatch:
    pip install hatch
    
  2. Create a virtual environment and install dependencies:
    hatch env create
    
  3. Run the server:
    hatch run usdc-arc-mcp-demo
    
    Or:
    hatch shell
    

usdc-arc-mcp-demo


#### Using uv

1. Install [uv](https://github.com/astral-sh/uv):
```sh
pip install uv
  1. Install dependencies:
    uv pip install -r requirements.txt
    
    Or, for PEP 621 projects:
    uv pip install -e .
    
  2. Run the server:
    usdc-arc-mcp-demo
    

Configuration

Set your Regulations.gov API key in a .env file:

DAP_API_KEY=your_api_key_here

Project Structure

  • src/usdc_arc_mcp_demo/ – Main package code
  • test/ – Tests

Linting

This project uses ruff for linting and code style checks.

To lint your code, run:

hatch run ruff check src/

Or:

hatch shell
ruff check src/

Resources

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured