Skip to main content

MCP server for Kora — deterministic authorization for AI agent spending

Project description

Kora MCP Server

MCP server for Kora — deterministic authorization for AI agent spending.

Gives AI agents (Claude, GPT, etc.) the ability to check budgets, request spending authorization, and verify service health — all with cryptographic Ed25519 proofs.

Quick Start

Install

pip install kora-mcp-server

Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "kora": {
      "command": "kora-mcp",
      "env": {
        "KORA_API_URL": "https://api.koraprotocol.com",
        "KORA_AGENT_SECRET": "kora_agent_sk_...",
        "KORA_MANDATE": "mandate_abc123def456",
        "KORA_ADMIN_KEY": "kora_admin_sk_..."
      }
    }
  }
}

Or run directly

KORA_AGENT_SECRET=kora_agent_sk_... \
KORA_MANDATE=mandate_abc123 \
kora-mcp

Tools

Tool Auth Description
kora_check_budget Agent Check remaining daily/monthly budget
kora_spend Agent Authorize a spend — returns APPROVED or DENIED with seal
kora_recent_activity Admin View recent authorization history
kora_health None Check if Kora is reachable
kora_audit Admin View recent admin actions on the mandate

Configuration

Env Variable Required Description
KORA_AGENT_SECRET Yes Agent secret key (kora_agent_sk_...)
KORA_MANDATE Yes Mandate ID governing spending limits
KORA_API_URL No API base URL (default: https://api.koraprotocol.com)
KORA_ADMIN_KEY No Admin key for audit + activity tools

How It Works

  1. AI agent calls kora_check_budget → sees remaining limits
  2. Agent calls kora_spend with amount, vendor, currency, reason
  3. Kora returns APPROVED (with Ed25519 cryptographic seal) or DENIED (with reason + suggestion)
  4. Agent proceeds only if approved — denials include actionable hints for self-correction

Fail-closed: If Kora is unreachable, the agent gets a clear "DO NOT PROCEED" message. No silent failures.

What is Kora?

Kora is a deterministic authorization engine for autonomous AI agent spending. It's not a bank, not a wallet, not a payment processor. Agents ask Kora "can I spend this?" and get a cryptographically signed yes or no.

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

kora_mcp_server-1.3.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

kora_mcp_server-1.3.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file kora_mcp_server-1.3.0.tar.gz.

File metadata

  • Download URL: kora_mcp_server-1.3.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for kora_mcp_server-1.3.0.tar.gz
Algorithm Hash digest
SHA256 40eea7dde42ed922b457f2ee27825733fc3356f853d62753d5ba1fd2c54079cf
MD5 fdcee352536133e83f57b8671900d0dd
BLAKE2b-256 01b5bb8dd213ab79965ac1c5f197a81e9bb54d9279068317ad4812c050325b30

See more details on using hashes here.

File details

Details for the file kora_mcp_server-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kora_mcp_server-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee27e39a316357d9b5c4437a9e8a0dda2e78bc3d05a3292c68dd35e634c1abb
MD5 6d170ee0077a29fed20abf8953eaeeb8
BLAKE2b-256 b1b124ac53838409b1f1aee5490f5647cf26270e16a6eced9c073b479b203061

See more details on using hashes here.

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