@citizenofthecloud/mcp-server
v0.1.0
Published
MCP server for Citizen of the Cloud — agent identity verification, trust scoring, and registry access
Maintainers
Readme
@citizenofthecloud/mcp-server
MCP server for Citizen of the Cloud — agent identity verification, trust scoring, and registry access for AI frameworks.
What is Citizen of the Cloud?
Citizen of the Cloud is an open identity and trust layer for AI agents. Agents register with Ed25519 key pairs, sign requests cryptographically, and build trust scores through verified interactions. This MCP server brings that capability to any AI framework that supports the Model Context Protocol.
Quick Start
Install
npm install -g @citizenofthecloud/mcp-serverConfigure
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"citizen-of-the-cloud": {
"command": "cotc-mcp",
"env": {
"CLOUD_ID": "cc-your-agent-id",
"CLOUD_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\nYOUR_KEY_HERE\n-----END PRIVATE KEY-----",
"REGISTRY_URL": "https://www.citizenofthecloud.com"
}
}
}
}Or run from source:
{
"mcpServers": {
"citizen-of-the-cloud": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"],
"env": {
"CLOUD_ID": "cc-your-agent-id",
"CLOUD_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\nYOUR_KEY_HERE\n-----END PRIVATE KEY-----"
}
}
}
}Environment Variables
| Variable | Required | Description |
|---|---|---|
| CLOUD_ID | No | This server's Cloud ID (cc-...). Enables signing and server identity. |
| CLOUD_PRIVATE_KEY | No | Ed25519 private key in PEM (PKCS8) format. Required if CLOUD_ID is set. |
| REGISTRY_URL | No | Registry URL. Defaults to https://www.citizenofthecloud.com. |
Without CLOUD_ID and CLOUD_PRIVATE_KEY, the server still works — you can look up agents, check trust scores, and verify signatures from other agents. You just can't sign requests with a server identity.
Tools
Identity & Signing
| Tool | Description |
|---|---|
| get-server-identity | Get this server's Cloud ID and passport from the registry |
| generate-keypair | Generate a new Ed25519 key pair for agent registration |
| sign-headers | Generate signed X-Cloud-* headers for outbound requests (simple or request-bound mode) |
Verification
| Tool | Description |
|---|---|
| verify-agent | Verify an agent's identity using Cloud ID, timestamp, and Ed25519 signature |
| lookup-agent | Look up an agent's public profile from the registry |
| check-trust | Check an agent's trust score against an optional threshold |
Challenge-Response Protocol
| Tool | Description |
|---|---|
| request-challenge | Request a cryptographic nonce from the registry (60s TTL) |
| sign-challenge | Sign a nonce using this server's private key |
| respond-to-challenge | Submit a signed nonce to complete verification |
Registry Operations
| Tool | Description |
|---|---|
| register-agent | Register a new agent (requires Supabase auth token) |
| list-directory | Browse the public agent directory |
| report-agent | Report an agent for policy violations |
| governance-feed | Get the latest governance activity feed |
Resources
| URI | Description |
|---|---|
| cotc://server/passport | This server's passport |
| cotc://agents/{cloud_id}/passport | Any agent's passport by Cloud ID |
| cotc://directory | Full agent directory listing |
Verification Protocol
Agents sign requests by creating a payload of {cloud_id}:{timestamp}, signing it with their Ed25519 private key, and attaching three headers:
X-Cloud-ID: cc-...
X-Cloud-Timestamp: 2026-01-01T00:00:00.000Z
X-Cloud-Signature: <base64url-encoded Ed25519 signature>Verification checks (in order):
- Headers present
- Agent not blocked
- Timestamp valid and within 5 minutes
- Agent exists in registry
- Agent status is
active - Covenant signed
- Trust score meets minimum (if configured)
- Autonomy level allowed (if configured)
- Cryptographic signature valid
Framework Wrappers
This MCP server complements the framework-specific wrappers:
- CrewAI —
@citizenofthecloud/crewai - LangChain —
@citizenofthecloud/langchain - Agent Framework —
@citizenofthecloud/agent-framework
Core SDKs:
- Python —
citizenofthecloud - JavaScript —
@citizenofthecloud/sdk
Build from Source
git clone https://github.com/citizenofthecloud/mcp-server.git
cd mcp-server
npm install
npm run buildLicense
MIT
