Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ucp_mcp-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ucp_mcp-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for ucp_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5bb541d5ff0e2f3df3fb3a63409eb4497ab989a1aaea7b7d70263398903b4e42
MD5 843f28839eef7aedc8af7ce94688599c
BLAKE2b-256 cd5af43fcbb24de5f698607eded76a7cb1d55ec97829db74c09c5d26f4374809

See more details on using hashes here.

Provenance

The following attestation bundles were made for ucp_mcp-0.1.0.tar.gz:

Publisher: release.yml on ucpcore/ucp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ucp_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1466530f9338aefbe17c937b317fa77b1ebe867c1c25370ce9c1ec8f578bf0d4
MD5 03177ec0e9490fbbeeb4b9915b2fa9bb
BLAKE2b-256 86d3f98cbf015fe019d47b76c38bbce407a0de238b69d71bee127590566128de

See more details on using hashes here.

Provenance

The following attestation bundles were made for ucp_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on ucpcore/ucp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page