Docket
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Docket Show me 20 recent building permit records from Seattle"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Docket
Universal Public Record Interface β An MCP Server that connects AI agents to public data.
What is Docket?
Docket bridges AI agents and the global ecosystem of public records through the Model Context Protocol. It provides type-safe, validated access to datasets from thousands of government portals powered by the Socrata Open Data API.
Think of it as "USB-C for public data access" β a universal connector between AI and government data.
Related MCP server: MCP Data Cook County
Quick Start
# Clone and install
git clone https://github.com/your-org/docket.git && cd docket
uv sync
# Run the server
uv run src/docket/server.pyFor detailed setup, see the Getting Started Tutorial.
Features
π Semantic Search β Find datasets across 1000+ government portals
π Dynamic Schema Generation β Auto-generate Pydantic models from any dataset
β Runtime Validation β Type-checked records with automatic error handling
π MCP Compatible β Works with Claude Desktop and any MCP-compliant host
π Streaming Pagination β Memory-efficient handling of large datasets
π Input Validation β Secure by default with comprehensive input sanitization
Documentation
π Full Documentation
Section | Description |
First-time setup and hello world | |
Connect Docket to Claude | |
Search and fetch public records | |
Complete API specification | |
System design and MCP details |
Available Tools
Tool | Description |
| Search across Socrata catalogs for datasets |
| Get JSON Schema for a dataset's structure |
| Retrieve validated records from a dataset |
Configuration
Create a .env file from the template:
cp .env.example .envAdd your Socrata App Token for higher rate limits:
SOCRATA_APP_TOKEN=your_token_hereClaude Desktop Integration
Add to your Claude Desktop config:
{
"mcpServers": {
"docket": {
"command": "uv",
"args": ["run", "--directory", "/path/to/docket", "src/docket/server.py"],
"env": {
"SOCRATA_APP_TOKEN": "your_token_here"
}
}
}
}See How to Connect to Claude Desktop for details.
Example Usage
Once connected to Claude Desktop:
"Find parking violation datasets in New York City"
"What columns are in the 311 complaints dataset (erm2-nwe9)?"
"Get me 20 recent building permit records from Seattle"
Requirements
Python 3.13+
uv (recommended) or pip
Socrata App Token (optional but recommended)
Development
# Install dev dependencies
uv sync
# Run tests
uv run pytest
# Type check
uv run mypy src/
# Lint
uv run ruff check src/Contributing
Contributions are welcome! Please see our contributing guidelines (coming soon).
Fork the repository
Create a feature branch
Make your changes
Run tests and linting
Submit a pull request
License
MIT License β see LICENSE for details.
Acknowledgments
Model Context Protocol β The universal AI connector standard
Socrata Open Data API β Public data infrastructure
Pydantic β Data validation library
FastMCP β MCP server framework
Available Tools
3 toolsfetch_dataset_schemaB
Get the schema (columns, types) for a specific dataset.
Args: resource_id: 4x4 dataset identifier (e.g., "erm2-nwe9") domain: Socrata portal domain
Inputs: resource_id (required), domain.
query_dataset_recordsC
Fetch records from a dataset with validation.
Args: resource_id: 4x4 dataset identifier limit: Max records to return domain: Socrata portal domain
Inputs: resource_id (required), limit, domain. Returns: result
search_public_recordsB
Search for public datasets across Socrata-powered portals.
Args: query: Search keywords (e.g., "parking violations", "building permits") limit: Max number of results (default: 5) domains: Optional list of domains to filter by.
Inputs: query (required), limit, domains. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
The three tools map to distinct stages of a workflow: find datasets, inspect schema, retrieve records. However, 'search_public_records' actually searches dataset metadata (not records), which could be confused with 'query_dataset_records' that does fetch records, creating a mild naming-driven ambiguity.
All three follow a snake_case verb_noun pattern (search_, fetch_, query_), which is largely consistent. The verbs differ (search/fetch/query) in a way that is readable but slightly less uniform than an ideal set.
Three tools is on the lean side but justified: discovery, schema inspection, and record retrieval form a complete minimal workflow with no redundant tools. It sits at the lower edge of the ideal range.
The core discover-schema-query lifecycle is covered, but query_dataset_records only supports a limit with no offset/pagination, filtering, or aggregation, which will block agents on anything beyond the first N records. Dataset-level metadata (row counts, last updated) is also absent.
Maintenance
Related MCP Connectors
Search and query government open-data portals (Socrata SODA API).
Resolve any government entity worldwide and submit service requests. Open civic data for AI agents.
U.S. civic data for AI agents: reps, votes, bills, finance, lobbying, cited gov sources. 47 tools.
Provides access to Civic Plus - See Click Fix, allowing you to interact with your data via an LLM.β¦
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to search, explore, and query San Francisco's open data portal through a standardized interface for public datasets. It supports SQL-like querying via the Socrata platform and includes features like fuzzy column matching and schema caching.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to search, query, and retrieve metadata from the Cook County Open Data catalog using Socrata SoQL queries.161 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that gives LLM agents typed, cached access to civic open-data portals via Socrata (SODA 2.1 + Discovery API), enabling search, query, profiling, sampling, and CSV export of datasets.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query U.S. public-health datasets such as disease surveillance, mortality, behavioral risk factors, and flu activity through the Socrata API, using natural language or direct tool calls.296 npmMIT