Metadata-Version: 2.4
Name: universal-paper-mcp
Version: 0.1.0
Summary: The official Universal Paper MCP server: read-only tools to validate, simulate and render GPO agreements
Author: Uppercentile
License-Expression: Apache-2.0
Project-URL: Homepage, https://universalpaper.org/developers/#mcp
Project-URL: Source, https://github.com/Uppercentile/universal-paper
Project-URL: Issues, https://github.com/Uppercentile/universal-paper/issues
Keywords: mcp,model context protocol,agents,agreements,contracts,group purchasing,GPO
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Office/Business
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: universal-paper[mcp]==0.1.0
Dynamic: license-file

# Universal Paper MCP server

<!-- mcp-name: io.github.Uppercentile/universal-paper -->

The official [Model Context Protocol](https://modelcontextprotocol.io) server for [Universal Paper](https://universalpaper.org), an open language for agreements between group purchasing organizations (GPOs), suppliers and members.

It lets an AI agent check an agreement the same way every other party does: validate a bundle, derive statuses and obligations, dry-run a signed event, simulate hypothetical events under a Mandate, render the agreement text, hash an object and look up Terms. Every tool is read-only. The server holds no keys, signs nothing, writes nothing and reports nothing.

## Use it

Hosted, nothing to install (Streamable HTTP, no sign-in):

```
https://mcp.universalpaper.org/mcp
```

Or run it locally with [uv](https://docs.astral.sh/uv/):

```
uvx universal-paper-mcp
```

Claude Code: `claude mcp add universal-paper -- uvx universal-paper-mcp`, or for the hosted one `claude mcp add --transport http universal-paper https://mcp.universalpaper.org/mcp`.

Other clients:

```json
{"mcpServers": {"universal-paper": {"command": "uvx", "args": ["universal-paper-mcp"]}}}
```

## Tools

| Tool | What it does |
| --- | --- |
| `validate_bundle` | Check every agreement and event against the axioms; per-event accept or reject with the rule |
| `derive_state` | Statuses, tiers, contract prices and open obligations at a time |
| `check_event` | Dry-run one signed event against its chain, writing nothing |
| `simulate_events` | Run hypothetical unsigned events forward; Mandate limits still apply |
| `render_text` | The human-readable agreement text fixed by its hash; optionally as an outsider sees sealed values |
| `hash_object` | Content hash (RFC 8785 JCS + SHA-256) of any JSON value |
| `list_terms`, `explain_term` | The standard 16-Term library |
| `get_example` | Worked example bundles (hypothetical parties and values) |

## Privacy

The local server runs entirely on your machine. The hosted server is stateless: no sessions, storage, access logs or telemetry. It counts calls per tool name, in memory, and shows the totals at [/stats](https://mcp.universalpaper.org/stats). Universal Paper never sets or suggests prices.

## Links

Docs: <https://universalpaper.org/developers/#mcp> · Spec: <https://universalpaper.org/spec/> · Source: <https://github.com/Uppercentile/universal-paper>

Created and offered free by [Uppercentile](https://uppercentile.com). Code Apache-2.0.
