This project populates a local SQLite database with server information from the official Model Context Protocol (MCP) registry API.
See the live github page: https://rosmur.github.io/official-mcp-registry-database/
You can interactively view the database through Datasette here The database is set to be updated daily at midnight UTC.
This is intended to be a very lightweight project with minimal code.
schema.sql
: Defines the database schema forservers
andrepositories
tables, along with views for server counts.populate_db.py
: A Python script that fetches server data from the official MCP registry API and populates the database.official_mcp_registry.db
: The SQLite database file generated bypopulate_db.py
.
If you wish to run this locally, setup as below
-
Install:
git clone cd official-mcp-registry-database uv sync # Requires uv package manager
-
Run the Population Script:
python populate_db.py
This script will:
- Remove any existing
official_mcp_registry.db
file. PENDING CHANGE TO ONLY UPDATE. - Create the database tables based on
schema.sql
. - Fetch server data from
https://registry.modelcontextprotocol.io/v0/servers
with pagination. - Populate the
servers
andrepositories
tables.
- Remove any existing