Skip to main content

MCP Server

The LedgerOS MCP server lets AI agents create cards, make purchases, and manage spending through a standardized protocol.

What is MCP?

Model Context Protocol (MCP) is an open standard for connecting AI models to external tools and data sources. Instead of building custom integrations, agents can connect to MCP servers and discover available capabilities automatically.

Why use MCP?

ApproachProsCons
REST APIFull control, any languageManual integration, more code
MCP ServerAuto-discovery, standardizedRequires MCP client
Use MCP when:
  • Your agent runs in Claude Desktop, Cursor, or another MCP-compatible environment
  • You want automatic tool discovery without manual integration
  • You’re building with frameworks that support MCP natively
Use the REST API when:
  • You need fine-grained control over requests
  • Your environment doesn’t support MCP
  • You’re building a traditional backend integration

Server URL

https://mcp.ledger.so/api/mcp

Authentication

The MCP server supports two credential types:
CredentialEnv VariableAccess Level
API KeyLEDGER_API_KEYFull access (admin + agent tools)
Agent TokenLEDGER_AGENT_TOKENAgent-scoped (agent tools only)
API Keys are for developers managing the platform—creating users, registering agents, configuring policies. Agent Tokens are for AI agents at runtime—creating cards, making purchases, checking balances.

Available Tools

Agent Tools (6)

ToolDescription
ledger_statusCheck user verification, balance, and spending eligibility
ledger_cardCreate, list, freeze, close cards and get card details
ledger_intentDeclare and list spending intents
ledger_transactionsQuery transaction history
ledger_onboardingGet KYC verification and deposit links
ledger_challengesRetrieve 3DS OTP codes

Admin Tools (5)

ToolDescription
ledger_usersCreate and manage users
ledger_agentsRegister and manage AI agents
ledger_policiesCreate card policy templates
ledger_riskConfigure risk detection settings
ledger_webhooksManage webhook endpoints

Next Steps