MCP server for the Paperclip AI agent orchestration platform
Project description
paperclip-mcp
MCP server for the Paperclip AI agent orchestration platform.
Exposes Paperclip's REST API as Model Context Protocol tools, so any MCP-compatible AI assistant (Claude, etc.) can manage issues, agents, goals, approvals, and costs through natural language.
Features
| Category | Tools |
|---|---|
| Issues | list_issues · get_issue · create_issue · update_issue · checkout_issue · release_issue · comment_on_issue · delete_issue |
| Agents | list_agents · get_agent · invoke_agent_heartbeat |
| Goals | list_goals · create_goal · update_goal |
| Approvals | list_approvals · approve · reject · request_approval_revision |
| Monitoring | get_cost_summary · get_dashboard · list_activity |
Requirements
- Python 3.10+
- A running Paperclip instance
- Authentication — one of:
- An Agent API key (Paperclip UI → Settings → API Keys), or
- A browser session token (
__Secure-better-auth.session_tokencookie)
Installation
Option A — uvx (zero-install, recommended)
No install step needed. uvx fetches and runs the latest published release on demand:
uvx paperclip-mcp --transport stdio
Option B — pip / uv
pip install paperclip-mcp
# or
uv pip install paperclip-mcp
Option C — from source
git clone https://github.com/elevateinformatics/paperclip-mcp
cd paperclip-mcp
pip install -e .
Configuration
Environment variables
| Variable | Required | Description |
|---|---|---|
PAPERCLIP_COMPANY_ID |
✅ | Company UUID from the Paperclip URL |
PAPERCLIP_API_KEY |
⚠️ one-of | Bearer API key (Settings → API Keys → New Key) |
PAPERCLIP_SESSION_TOKEN |
⚠️ one-of | Value of __Secure-better-auth.session_token cookie |
PAPERCLIP_BASE_URL |
❌ | Defaults to http://localhost:3100/api |
Provide either PAPERCLIP_API_KEY (preferred for production) or PAPERCLIP_SESSION_TOKEN (useful when API keys are not available — uses your logged-in browser session).
How to get a session token
- Log in to Paperclip in Chrome/Edge
- DevTools → Application → Cookies → pick your Paperclip domain
- Copy the value of
__Secure-better-auth.session_token
Security: Session tokens grant full access to your user account. Treat them like passwords — never commit
.envor share the value. They also expire and must be refreshed periodically.
.env file (local dev)
PAPERCLIP_BASE_URL=https://elevate-ai.up.railway.app/api
PAPERCLIP_COMPANY_ID=your_company_uuid
PAPERCLIP_API_KEY=your_api_key # OR
PAPERCLIP_SESSION_TOKEN=your_session_cookie_value
Usage
Start the server
# HTTP (for Claude Code / mcp-proxy) — default port 9011
paperclip-mcp
# Custom port
paperclip-mcp --port 9012
# stdio transport (for Claude Desktop)
paperclip-mcp --transport stdio
# All options
paperclip-mcp --help
Register with Claude Code
# HTTP transport (persistent — survives Claude restarts)
claude mcp add paperclip --transport http http://localhost:9011/mcp
# stdio transport (Claude Desktop — add to claude_desktop_config.json)
Claude Desktop (claude_desktop_config.json)
Using uvx (no install required):
{
"mcpServers": {
"paperclip": {
"command": "uvx",
"args": ["paperclip-mcp@latest", "--transport", "stdio"],
"env": {
"PAPERCLIP_BASE_URL": "https://your-paperclip.example.com/api",
"PAPERCLIP_COMPANY_ID": "your_company_uuid",
"PAPERCLIP_API_KEY": "your_api_key"
}
}
}
}
Or with a session token instead of an API key:
"env": {
"PAPERCLIP_BASE_URL": "https://your-paperclip.example.com/api",
"PAPERCLIP_COMPANY_ID": "your_company_uuid",
"PAPERCLIP_SESSION_TOKEN": "your_session_cookie_value"
}
Example interactions
Once registered, you can ask your AI assistant:
"What tasks does the Purchasing agent have open?"
→ calls list_issues(assignee_agent_id="...", status="todo,in_progress")
"Create a task for the CEO agent to search for new cheese suppliers in Barcelona"
→ calls create_issue(title="Search cheese suppliers in Barcelona", assignee_agent_id="...")
"Approve the pending hire request"
→ calls list_approvals(status="pending") + approve(approval_id="...")
"How much have we spent on tokens this month, broken down by agent?"
→ calls get_cost_summary()
"Wake up the Administration agent now"
→ calls invoke_agent_heartbeat(agent_id="...")
Auto-start with the MCP stack
Add to your stack startup script:
# Check if already running
curl -s --max-time 1 http://localhost:9011/mcp > /dev/null 2>&1 || \
nohup paperclip-mcp > /tmp/paperclip-mcp.log 2>&1 &
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Lint
ruff check src/
ruff format src/
# Type check
mypy src/
# Tests
pytest
Architecture notes
- Who should use this MCP: Human operators managing agents via Claude Code or Claude Desktop.
- Do agents need this MCP?: No — Paperclip agents already interact with the REST API directly via HTTP in their HEARTBEAT protocol. This MCP is for the human operator layer.
- Hermes agents: If you switch to Hermes, this MCP is automatically available since Hermes supports MCP natively.
- Transport choice: Use
streamable-httpfor Claude Code and mcp-proxy integrations. Usestdiofor Claude Desktop. - Security: The server binds to
127.0.0.1by default (localhost only). Do not expose it publicly — it carries your Paperclip credentials.
License
MIT — see LICENSE.
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 paperclip_mcp-0.2.1.tar.gz.
File metadata
- Download URL: paperclip_mcp-0.2.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94c00115b29c29bdc51561dcd2574b1a2966ba8477b90d9778d01fc9d94696ce
|
|
| MD5 |
af16f4e339c16e5f31c06d8992c7cc72
|
|
| BLAKE2b-256 |
24ff3e16171616c7f0bca987553bef4172d61e89198b4c55ddd7c33fe2e6175a
|
Provenance
The following attestation bundles were made for paperclip_mcp-0.2.1.tar.gz:
Publisher:
publish.yml on elevateinformatics/paperclip-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paperclip_mcp-0.2.1.tar.gz -
Subject digest:
94c00115b29c29bdc51561dcd2574b1a2966ba8477b90d9778d01fc9d94696ce - Sigstore transparency entry: 1280927915
- Sigstore integration time:
-
Permalink:
elevateinformatics/paperclip-mcp@54d061fb720ddc4a77c0445578d32b970d25b5fa -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/elevateinformatics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@54d061fb720ddc4a77c0445578d32b970d25b5fa -
Trigger Event:
release
-
Statement type:
File details
Details for the file paperclip_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: paperclip_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
45757c1240de250f0898fde75a1a669a37aa24c302b2f371b1139ac9d71b0619
|
|
| MD5 |
1a1fc9efa98e1b0624419aac694623b4
|
|
| BLAKE2b-256 |
843df02c645889ead1432e0ea867492feb213cad47cc130619855da8d7b58861
|
Provenance
The following attestation bundles were made for paperclip_mcp-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on elevateinformatics/paperclip-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paperclip_mcp-0.2.1-py3-none-any.whl -
Subject digest:
45757c1240de250f0898fde75a1a669a37aa24c302b2f371b1139ac9d71b0619 - Sigstore transparency entry: 1280927918
- Sigstore integration time:
-
Permalink:
elevateinformatics/paperclip-mcp@54d061fb720ddc4a77c0445578d32b970d25b5fa -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/elevateinformatics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@54d061fb720ddc4a77c0445578d32b970d25b5fa -
Trigger Event:
release
-
Statement type: