Skip to main content
Glama
ZenMoney MCP bridge

ZenMoney MCP bridge

by alex-mnsk

ZenMoney MCP bridge

Run a single-user MCP server for your own ZenMoney account. Each deployment uses its own Cloudflare resources, OAuth app, and credentials. ChatGPT connects to the HTTPS MCP endpoint using OAuth. The example configuration disables writes. An operator can opt in with ENABLE_WRITES=true and reconnect to grant the required write scope.

Cloudflare setup

  1. Install Node.js 22 or newer and run npm ci.

  2. Authenticate Wrangler with your own Cloudflare account. Copy wrangler.example.jsonc to wrangler.jsonc. Set your Worker name and the exact HTTPS PUBLIC_ORIGIN without a trailing slash.

  3. Run npx wrangler kv namespace create OAUTH_KV and paste the new ID in wrangler.jsonc. Use a separate namespace for each deployment. It holds OAuth state and grants, so restrict access to it.

  4. Run npm run cloud:deploy. Set the secrets below via Cloudflare's dashboard or npx wrangler secret put SECRET_NAME, which prompts for the value. The service rejects account access until the owner and credentials are configured.

Related MCP server: Telegram Personal MCP

ZenMoney authorization

  1. Obtain your own ZenMoney access token following the ZenMoney API documentation. Set the Worker Secret ZENMONEY_TOKEN. When this upstream token is revoked or expires, replace it in Cloudflare. The MCP OAuth refresh flow renews the ChatGPT session separately.

  2. Create a GitHub OAuth App with callback <your-origin>/github/callback. Set Worker Secrets GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET and your numeric OWNER_GITHUB_ID.

  3. The Worker provisions its own Durable Object using the checked-in migrations. Start with the default read-only configuration.

Connect ChatGPT

Add a custom MCP server with URL <your-origin>/mcp. Complete OAuth using the same owner account you configured. Only the configured account may approve access. Confirm that an unauthenticated request to /mcp cannot access any tools, then connect as the owner and test a read operation.

Store deployment values in ignored local configuration and secret values in Worker Secrets. Keep local credentials and token files accessible only to your user. Rotate credentials at their issuer if exposed.

Development

Run npm test. Example configuration uses placeholder infrastructure and no production credentials.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a single MCP server endpoint that lets AI agents connect to many real third-party services through OAuth, with user approvals, activity logs, scoped read/write grants, and one-tap access removal.
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables a trusted MCP assistant to access a personal Telegram account for finding existing chats and contacts, reading bounded history, preparing immutable message previews, and deliberately sending or replying only to explicitly authorized messages.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-capable AI apps to read and write a user's Malaysian accounting data (resources, reports, and optionally create/update/delete operations) by pasting a single URL and connecting through OAuth, with credentials stored encrypted server-side.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects ChatGPT, Claude, and other AI agents to a signed-in Zenoti account so they can work with appointments, guest conversations, reviews, and reports. Write operations require approval by default.
      7
      Elastic 2.0