PATSTAT MCP Lite
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PATSTAT MCP Lite
MCP (Model Context Protocol) server for PATSTAT patent database schema discovery and query execution on the EPO TIP platform.
This is a lightweight version of mtc-patstat-mcp -- stripped of authentication, BigQuery direct access, and cost-cap logic. It runs exclusively inside EPO TIP using epo.tipdata.patstat.PatstatClient.
Requirements
Python >= 3.10
EPO TIP environment (provides
epo.tipdata.patstat)Schema discovery tools work anywhere;
execute_queryrequires TIP
Related MCP server: mcp-server-bigquery
Installation
pip install git+https://github.com/mtcberlin/mtc-patstat-mcp-lite.git@developTools
Tool | Description |
| List all available PATSTAT tables with descriptions |
| Get column details (name, type, description) for a specific table |
| Search for tables/columns by keyword |
| Get sample data rows for a specific table |
| Execute SQL against PATSTAT via TIP PatstatClient |
Workflow:
list_tables()-- overview of all tablesIdentify relevant tables for your query
get_table_schema(table_name)-- column details with typesget_table_samples(table_name)-- understand actual data valuesGenerate SQL using MCP-provided context
execute_query(query)-- run the query and get results
Usage
stdio (default, for Claude Code / MCP clients)
patstat-mcp-liteHTTP (for Svelte app / sidecar integration)
patstat-mcp-lite --http --port 8080Serves both SSE (/sse + /messages) and Streamable HTTP (/mcp) on one port.
MCP Client Configuration
Copy .mcp.json.example to .mcp.json:
{
"mcpServers": {
"patstat-mcp-lite": {
"command": "patstat-mcp-lite"
}
}
}Transport Options
Transport | Flag | Endpoints | Use with |
stdio | (default) | -- | Claude Code manages the process |
SSE |
|
| Claude Code CLI ( |
Streamable HTTP |
|
| Claude Code CLI ( |
Combined |
|
| All clients on one port |
Architecture
src/patstat_mcp/
server.py -- MCP server entry point (stdio/SSE/HTTP transports)
tools.py -- Tool definitions and handlers
tip_client.py -- TIP PatstatClient wrapper + SQLite reference tables
config.py -- Configuration loading
context.py -- Schema/sample JSON file loading
data/
tables/ -- Per-table schema JSON files
samples/ -- Per-table sample data JSON files (10 rows each)
reference.db.gz -- SQLite with 5 IPC/CPC reference tables
config/
patstat-mcp.json -- Server configuration
prompts/default.txt -- System prompt templateReference Tables
Five IPC/CPC hierarchy tables are not available via TIP's PatstatClient. These are served from a local SQLite database (data/reference.db.gz, auto-decompressed on first use):
tls_cpc_hierarchytls_ipc_catchwordtls_ipc_concordancetls_ipc_everusedtls_ipc_hierarchy
Queries mixing TIP tables and reference tables are not supported -- query them separately.
Extending
Add new PATSTAT tables by dropping two JSON files -- no code changes needed:
data/tables/<table_name>.json-- schema definitiondata/samples/<table_name>.json-- 10 sample rows
Development
git clone https://github.com/mtcberlin/mtc-patstat-mcp-lite.git
cd mtc-patstat-mcp-lite
pip install -e ".[dev]"
pytestBranching
develop-- active development (default branch)main-- stable, branch-protected (PRs only)
License
Internal use -- MTC Berlin / EPO TIP.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
List datasets, schemas, run APL queries, and use prompts for exploration, anomalies, and monitoring.
SQL over 52.8B public records: USAspending, OpenAlex, patents, LEHD jobs, SEC, EPA, FERC, Medicare.
Query, explore, and manage your databases through natural conversation.
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas and execute SQL queries, list tables, and describe table schemas.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas and execute SQL queries, including listing tables and describing table schemas.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas and execute SQL queries against configured datasets, with tools for listing and describing tables.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect database schemas and execute SQL queries, including listing tables and describing table schemas.-