Reference MCP server for the Universal Context Package: serves UCP documents to any MCP-capable agent (Cursor, Claude Code, ...)
Project description
ucp-mcp — reference MCP server for Universal Context Packages
Exposes UCP documents to any MCP-capable agent (Cursor, Claude Code, Codex, Gemini CLI, …). This is the reference composition of the two protocols:
MCP is the pipe. UCP is what flows through it.
The server watches a directory of *.ucp.json files and serves them through
three tools. Any producer (a context platform, a script, a CI job) can drop
packages into that directory; any agent connected to the server can consume
task context that is structured, provenance-backed, and token-budgeted.
Install & run
pip install ucp-mcp
ucp-mcp --dir ./contexts # or: UCP_DIR=./contexts ucp-mcp
Cursor / Claude Code configuration (mcp.json):
{
"mcpServers": {
"ucp": {
"command": "ucp-mcp",
"args": ["--dir", "/path/to/contexts"]
}
}
}
Tools
| Tool | Purpose |
|---|---|
list_contexts() |
Inventory: entity id, title, system, freshness for every available package |
get_context(entity) |
Full UCP JSON for an entity (by id, URL, or title fragment) |
get_context_markdown(entity, token_budget?) |
Canonical CommonMark rendering (SPEC §7), optionally truncated to a token budget by salience |
entity matching is forgiving: exact entity id (PAY-482), source URL, or a
case-insensitive title fragment.
Why a directory of files?
This server is a reference, not a product. Its job is to demonstrate the MCP+UCP composition end to end with zero infrastructure, so that:
- agent users can try UCP in one minute;
- producers see the contract they need to implement (a real producer replaces the directory with a live Context Builder, keeping the same tools).
Development
pip install -e ".[dev]"
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ucp_mcp-0.1.0.tar.gz.
File metadata
- Download URL: ucp_mcp-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bb541d5ff0e2f3df3fb3a63409eb4497ab989a1aaea7b7d70263398903b4e42
|
|
| MD5 |
843f28839eef7aedc8af7ce94688599c
|
|
| BLAKE2b-256 |
cd5af43fcbb24de5f698607eded76a7cb1d55ec97829db74c09c5d26f4374809
|
Provenance
The following attestation bundles were made for ucp_mcp-0.1.0.tar.gz:
Publisher:
release.yml on ucpcore/ucp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ucp_mcp-0.1.0.tar.gz -
Subject digest:
5bb541d5ff0e2f3df3fb3a63409eb4497ab989a1aaea7b7d70263398903b4e42 - Sigstore transparency entry: 2082471249
- Sigstore integration time:
-
Permalink:
ucpcore/ucp@2c2143e05cbe1b9aa175dab52f71d92fb8a26f48 -
Branch / Tag:
refs/tags/mcp-v0.1.0 - Owner: https://github.com/ucpcore
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c2143e05cbe1b9aa175dab52f71d92fb8a26f48 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ucp_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ucp_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1466530f9338aefbe17c937b317fa77b1ebe867c1c25370ce9c1ec8f578bf0d4
|
|
| MD5 |
03177ec0e9490fbbeeb4b9915b2fa9bb
|
|
| BLAKE2b-256 |
86d3f98cbf015fe019d47b76c38bbce407a0de238b69d71bee127590566128de
|
Provenance
The following attestation bundles were made for ucp_mcp-0.1.0-py3-none-any.whl:
Publisher:
release.yml on ucpcore/ucp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ucp_mcp-0.1.0-py3-none-any.whl -
Subject digest:
1466530f9338aefbe17c937b317fa77b1ebe867c1c25370ce9c1ec8f578bf0d4 - Sigstore transparency entry: 2082471288
- Sigstore integration time:
-
Permalink:
ucpcore/ucp@2c2143e05cbe1b9aa175dab52f71d92fb8a26f48 -
Branch / Tag:
refs/tags/mcp-v0.1.0 - Owner: https://github.com/ucpcore
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c2143e05cbe1b9aa175dab52f71d92fb8a26f48 -
Trigger Event:
push
-
Statement type: