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
Metadata
Release files for ucp-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ucp_mcp-0.1.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ucp_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / ucp_mcp-0.1.0.tar.gz
| Download URL | ucp_mcp-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bb541d5ff0e2f3df3fb3a63409eb4497ab989a1aaea7b7d70263398903b4e42
|
|
BLAKE2b-256 checksum How to use checksums |
cd5af43fcbb24de5f698607eded76a7cb1d55ec97829db74c09c5d26f4374809
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / ucp_mcp-0.1.0-py3-none-any.whl
| Download URL | ucp_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1466530f9338aefbe17c937b317fa77b1ebe867c1c25370ce9c1ec8f578bf0d4
|
|
BLAKE2b-256 checksum How to use checksums |
86d3f98cbf015fe019d47b76c38bbce407a0de238b69d71bee127590566128de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency log