原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MainBook Bank Statement Converter

作者:human-beyond版本 0.5.2i★ –i电脑或云端
注册名称ai.mainbook/bank-statement-converter

安装

概览

作者提供的说明(英文原文)

Convert PDF bank statements to checked Excel, CSV or JSON with balance validation.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 电脑或云端
  • 传输方式: stdio, Streamable HTTP
  • 分类: 文档、表格与办公
  • 你需要填写:MAINBOOK_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • 在云端运行无需安装任何东西,通过互联网连接
  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://mcp.mainbook.ai/mcp

或者在你的电脑上运行

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "bank-statement-converter": {
      "command": "uvx",
      "args": [
        "mainbook-mcp"
      ],
      "env": {
        "MAINBOOK_API_KEY": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add --transport http bank-statement-converter https://mcp.mainbook.ai/mcp

或者在你的电脑上运行

claude mcp add bank-statement-converter --env MAINBOOK_API_KEY=your-value -- uvx mainbook-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}

或者在你的电脑上运行

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "bank-statement-converter": {
      "command": "uvx",
      "args": [
        "mainbook-mcp"
      ],
      "env": {
        "MAINBOOK_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "bank-statement-converter": {
      "type": "http",
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}

或者在你的电脑上运行

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "bank-statement-converter": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mainbook-mcp"
      ],
      "env": {
        "MAINBOOK_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://mcp.mainbook.ai/mcp

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MAINBOOK_API_KEY 机密 env
    Optional MainBook API key for scripts and CI; interactive users can run mainbook-mcp auth login

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 mainbook.ai 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    端点有响应

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    使用 OAuth 登录

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3540 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3540 个服务器的 28% 更新
  • 基础检查结果等于或优于此分类中其他 3540 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MainBook Bank Statement Converter 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MAINBOOK_API_KEY

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.5.2)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT7天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

MainBook Bank Statement Converter

A finance MCP server scoped to one job: turning PDF bank statements into checked JSON, Excel or CSV — not a general accounting MCP. It runs locally after one mainbook-mcp auth login, or over MainBook's hosted endpoint at https://mcp.mainbook.ai/mcp, where your client signs you in with your MainBook account. Existing mb_live_ API keys keep working for scripts and older clients.

Point your assistant at a statement and ask for a spreadsheet. The PDF goes to MainBook, which extracts every transaction, normalises dates to YYYY-MM-DD, keeps money as exact amounts, and re-adds the statement so that opening balance + credits − debits has to match the closing balance. Rows that do not fit are flagged instead of being passed on quietly.

> Convert ~/Downloads/march-statement.pdf and save the Excel next to it.

mainbook - convert_bank_statement (MCP) 63 transactions · 4 pages · 4 credits Totals reconciled against the statement Saved to ~/Downloads/march-statement.xlsx

Done — 63 transactions. Opening 4,127.50 and closing 3,881.05 both match the statement, and nothing was flagged.

What it is not

It does not connect to bank accounts and is not an Open Banking or bank-data API. It reads statement files you already have. Nothing is scraped and no banking credentials are involved.

What you need

A MainBook account and the folders holding your statements. Conversion is the only tool that spends page credits. Of the other four, get_balance and list_conversions only read, get_conversion may write a result file, and output_folder changes a local preference; none of them changes anything in your MainBook account.

Add it to your client

Sign in once from a terminal:

uvx mainbook-mcp auth login

The command opens MainBook in your browser, shows the same short code in both places, and waits for your approval. It stores the credential in the OS keyring when the optional keyring package is installed and working. Otherwise it uses ~/.config/mainbook/credentials.json with private directory and file permissions. Use mainbook-mcp auth status to check the active credential server-side without spending page credits. mainbook-mcp auth logout revokes that stored key first, then removes the local copy; if MainBook cannot be reached, it says plainly that the key may still be active. Signing in again revokes the previously stored key before saving its replacement. The device token response does not include an email or account ID, so status says that account identity was not provided instead of guessing.

Then add one entry to your client's MCP configuration. This is the same block for Claude Desktop (Settings → Developer → Edit Config), Claude Code, and Cursor; no key is copied into it:

{

"mcpServers": { "mainbook": { "command": "uvx", "args": ["mainbook-mcp", "~/Downloads", "~/Desktop", "~/Documents"] } } }

Codex reads TOML, so put the same thing in ~/.codex/config.toml:

[mcp_servers.mainbook]

command = "uvx" args = ["mainbook-mcp", "~/Downloads", "~/Desktop", "~/Documents"]

uvx comes with uv; install it once with brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh. It fetches and runs the published package, so there is nothing to download by hand and nothing to update. If you would rather not add uv, run pip install mainbook-mcp and use "command": "mainbook-mcp" with the same arguments — you then upgrade it yourself with pip install -U mainbook-mcp.

The folder arguments are the only places the server may read a statement from or write a result to; anything outside them is refused. MAINBOOK_ALLOWED_DIRS sets the same list through the environment instead, separated by the platform's os.pathsep (: on macOS/Linux, ; on Windows).

Manual API key for scripts and CI

MAINBOOK_API_KEY takes precedence over any stored login. Keep the manual method for automation where an interactive browser is not available. auth login warns when this variable will keep overriding the newly stored credential:

export MAINBOOK_API_KEY="mb_live_REPLACE_ME"

mainbook-mcp

Create and revoke manual keys at https://mainbook.ai/developer. Never commit them.

Claude Desktop, without touching a config file

Claude Desktop also accepts a one-file bundle: Extensions → Install Extension… and pick mainbook.mcpb. It asks for the API key and the folders in a dialog and manages its own Python runtime, so nothing needs installing first. The config block above does the same job and is the better fit if you already keep other servers there. Build the bundle from this directory with:

npx --yes @anthropic-ai/mcpb@2.1.2 validate manifest.json

npx --yes @anthropic-ai/mcpb@2.1.2 pack . dist/mainbook.mcpb

What it exposes

  • convert_bank_statement: creates a paid page-credit job, uploads one PDF, starts conversion, polls for up to 30-900 seconds, and returns the reviewed result. JSON stays inline. In local stdio mode, XLSX/CSV bytes are written to disk and only the full path enters model context.
  • get_conversion: checks a job after a timeout and returns JSON inline or writes XLSX/CSV to a chosen local destination.
  • list_conversions: returns one cursor page of account jobs plus next_cursor.
  • get_balance: returns total, reserved, and available credits, all measured in PDF pages.
  • output_folder: reads or changes the default local result folder.

Local stdio mode lists all five tools. Hosted HTTP mode lists exactly the first four; output_folder is not advertised remotely because the server's disk does not belong to the client.

There are no tools for buying credits, payments, deleting jobs, or changing account data. Tools that can create a conversion, write a local result file, or change the output preference are marked non-read-only. get_conversion is read-only over hosted HTTP, where it writes no file, and non-read-only over local stdio, where it may write XLSX or CSV. None is marked destructive because existing result files are never replaced.

Where result files go

For local stdio clients (Claude Desktop, Claude Code, Cursor, and Codex), XLSX and CSV results are written to the first available destination in this order:

  1. output_path supplied to convert_bank_statement or get_conversion (an absolute filename or an existing folder);
  2. the folder remembered by output_folder;
  3. next to the source PDF, with the same base name and the result extension.

get_conversion cannot infer the original PDF folder. Without output_path or a valid remembered folder it returns a clear error instead of guessing a destination. Every successful file response contains the absolute path and explains which rule selected it. Existing files are never replaced: statement.xlsx is followed by statement (2).xlsx, then (3), and so on.

Ask the client to call output_folder with no argument to see the current setting and every allowed folder. Set it with an allowed absolute directory, or pass next_to_source to restore the default. The preference is shared by local clients on the same machine in ~/.mainbook/preferences.json. A saved folder that is missing or no longer allowed is ignored, and that fallback is stated in the result.

JSON remains inline. It is also written to a .json file only when an explicit output_path is provided. In remote HTTP mode, local paths and output_folder are unavailable, because the server disk does not belong to the client. XLSX/CSV comes back as a one-time download link that expires in ten minutes when you signed in through OAuth, and as a REST download instruction when you authenticated with a legacy mb_live_ key.

Manual requirements and installation

  • Python 3.11 or newer
  • A MainBook account

From this directory:

python3 -m venv .venv

.venv/bin/python -m pip install .

To prefer the OS keyring over the private JSON fallback, install the optional extra in every environment that runs the login command or the local server:

.venv/bin/python -m pip install '.[keyring]'

Use a plain install, not pip install -e .. In this checkout the editable install writes a .pth file that the interpreter does not pick up, so python -m mainbook_mcp fails with "No module named mainbook_mcp" while the package looks installed. An identical file under another name is honoured, so the content is fine and the cause is still unexplained — a plain install sidesteps it entirely.

If you use the manual method for automation, keep mb_live_... values in a secret environment or client configuration. Never commit them.

Streamable HTTP mode

MainBook runs this server for you at https://mcp.mainbook.ai/mcp, so a client that speaks remote MCP needs nothing installed. Paste that URL into claude.ai, Claude Desktop, ChatGPT or Cursor and sign in with your MainBook account when the client asks; no key is copied into the configuration. Cursor takes a fixed client id instead of registering itself, so give it this block:

{

"mcpServers": { "mainbook": { "url": "https://mcp.mainbook.ai/mcp", "auth": { "CLIENT_ID": "mainbook-cursor", "scopes": ["mainbook:read", "mainbook:convert"] } } } }

A client that cannot sign in can still send a legacy key from mainbook.ai/developer:

Authorization: Bearer mb_live_REPLACE_ME

Either credential is read from each request, so every user of a client reaches their own MainBook account and spends their own page credits. initialize and tools/list answer without a credential; every tool call requires one. Local file paths and output_folder do not exist over HTTP — pass file_url instead of file_path, because the server's disk is not yours. XLSX or CSV results come back as a one-time download link (ten minutes, single use) for OAuth sessions, or as a REST download instruction for a legacy mb_live_ key.

You can also run the same remote mode yourself. It is stateless Streamable HTTP with JSON responses:

mainbook-mcp --transport http --host 127.0.0.1 --port 8000

The MCP endpoint is then http://127.0.0.1:8000/mcp. Each client should send its own header:

Authorization: Bearer mb_live_REPLACE_ME

The header is read from each tool-call request and never stored in global state. Hosted HTTP mode does not inspect MAINBOOK_API_KEY, the OS keyring, or the local credential file. For Codex remote mode:

[mcp_servers.mainbook]

url = "https://mcp.mainbook.ai/mcp" bearer_token_env_var = "MAINBOOK_API_KEY" tool_timeout_sec = 920 default_tools_approval_mode = "writes"

Replace the URL with your own host if you deploy this yourself; a self-hosted deployment still needs normal HTTPS termination and access controls.

OAuth on the hosted service

Account sign-in is live on https://mcp.mainbook.ai/mcp (since 2026-08-20). The verifier stays disabled by default in this source tree, so a deployment you run yourself has to enable it deliberately. Wherever it is enabled, initialize and tools/list remain public, while each tool call accepts either an existing mb_live_ key or a MainBook RS256 access token. OAuth tokens are verified locally against only the configured MainBook JWKS URL; they are never forwarded to the Developer API. The MCP server sends a fresh 60-second X-MainBook-Service credential for every internal REST request instead.

The hosted tool scopes are fixed in one ma

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx