Beancount.io MCP API

Model Context Protocol - tool calling for ledgers

Operations 3

POST /api-gateway/mcp MCP tool invocation (Streamable HTTP) #
GET /api-gateway/mcp MCP server manifest #
GET /mcp MCP product page and manifest negotiation #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/beancount-io:beancount-io-mcp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

beancount-io-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Beancount.io MCP API
  description: Plain-Text Accounting. Powerful, Precise, Auditable. — Plain-text double-entry accounting with git versioning, BQL queries, CSV import, and MCP integration. Use scoped API keys or OAuth 2.1. See /mcp for Model Context Protocol and /graphql for the GraphQL endpoint. Free tier available; sandbox at https://beancount.io/demo.
  version: 1.0.0
  contact:
    name: Beancount.io
    url: https://beancount.io
    email: hello@beancount.io
  license:
    name: MIT
    url: https://opensource.org/license/mit
servers:
- url: https://beancount.io
  description: Production
security:
- ApiKeyAuth: []
- OAuth2:
  - read
  - write
tags:
- name: MCP
  description: Model Context Protocol - tool calling for ledgers
paths:
  /api-gateway/mcp:
    post:
      operationId: mcpCall
      summary: MCP tool invocation (Streamable HTTP)
      description: Model Context Protocol endpoint implementing Streamable HTTP transport. One tool per operation, including runBqlQuery (typed BQL), listLedgerFiles, readLedgerFiles, appendLedgerText, and createLedgerFiles/updateLedgerFiles/deleteLedgerFiles (atomic git commit with dry-run); the live list is https://beancount.io/.well-known/mcp.json. OAuth 2.1 required with scoped permissions. Returns JSON-RPC 2.0 with structured errors. See https://beancount.io/mcp for setup.
      tags:
      - MCP
      security:
      - OAuth2:
        - read
        - write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - jsonrpc
              - method
              properties:
                jsonrpc:
                  type: string
                  enum:
                  - '2.0'
                id:
                  type: string
                method:
                  type: string
                  enum:
                  - tools/list
                  - tools/call
                  - initialize
                  - ping
                params:
                  type: object
                  description: Tool-specific parameters - typed per tool
      responses:
        '200':
          description: MCP JSON-RPC response
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: mcpManifest
      summary: MCP server manifest
      description: Returns MCP server capabilities, tool list, and transport info as JSON. Used by Claude, ChatGPT, and other clients for discovery.
      tags:
      - MCP
      responses:
        '200':
          description: MCP manifest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPManifest'
              example:
                name: beancount
                version: 1.0.0
                transport: streamable-http
                tools:
                - name: runBqlQuery
                  description: Run Beancount Query Language query
                - name: listLedgerFiles
                  description: List ledger repository files
                - name: readLedgerFiles
                  description: Read ledger files
                - name: appendLedgerText
                  description: Add Beancount directives in date order, with dry-run preview
                - name: updateLedgerFiles
                  description: Atomic git-commit file edits with dry-run preview
  /mcp:
    get:
      operationId: mcpInfo
      summary: MCP product page and manifest negotiation
      description: 'Human page at /mcp and machine manifest via Accept: application/json. Returns HTML by default, JSON manifest when Accept includes application/json. Vary: Accept.'
      tags:
      - MCP
      parameters:
      - name: Accept
        in: header
        schema:
          type: string
        description: Use application/json for MCP manifest JSON
      responses:
        '200':
          description: HTML page or JSON manifest via content negotiation
          headers:
            Vary:
              schema:
                type: string
              description: Accept
          content:
            text/html:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/MCPManifest'
components:
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Machine-readable error code, e.g. BAD_REQUEST, UNAUTHORIZED, RATE_LIMITED
        message:
          type: string
          description: Human-readable message
        hint:
          type: string
          description: Resolution hint - what to do next
        details:
          type: object
          additionalProperties: true
          description: Optional structured details
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    MCPManifest:
      type: object
      required:
      - name
      - version
      - transport
      - tools
      properties:
        name:
          type: string
          example: beancount
        version:
          type: string
          example: 1.0.0
        transport:
          type: string
          enum:
          - streamable-http
          - sse
          example: streamable-http
        endpoint:
          type: string
          format: uri
          example: https://beancount.io/api-gateway/mcp
        tools:
          type: array
          items:
            type: object
            required:
            - name
            - description
            properties:
              name:
                type: string
              description:
                type: string
              inputSchema:
                type: object
                description: JSON Schema for tool inputs
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Scoped API key. Roles: read (query content/ledgers), write (ledger edits), admin (full). Request only needed scopes. Self-serve keys via dashboard; free tier and sandbox available at /demo. Rotate via API.'
    OAuth2:
      type: oauth2
      description: OAuth 2.1 with PKCE for MCP and GraphQL. Scopes enforce least privilege.
      flows:
        authorizationCode:
          authorizationUrl: https://beancount.io/oauth/authorize
          tokenUrl: https://beancount.io/oauth/token
          scopes:
            read: Read ledgers, queries, and content
            write: Edit ledgers and commit changes
            admin: Full administrative access
        clientCredentials:
          tokenUrl: https://beancount.io/oauth/token
          scopes:
            read: Read ledgers, queries, and content
            write: Edit ledgers and commit changes