MainBook Bank Statement Converter
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAINBOOK_API_KEY | No | Optional API key for manual/CI usage. Takes precedence over any stored login. Ignored in HTTP mode where each request uses its own Bearer header. | |
| MAINBOOK_MCP_HOST | No | HTTP bind host when using HTTP transport. | 127.0.0.1 |
| MAINBOOK_MCP_PORT | No | HTTP bind port when using HTTP transport. | 8000 |
| MAINBOOK_ALLOWED_DIRS | No | Local folders allowed for source reads and result writes, separated by the platform's path separator (':' on macOS/Linux, ';' on Windows). If neither positional directory arguments nor this variable is supplied, defaults are ~/Downloads, ~/Desktop, ~/Documents. | |
| MAINBOOK_API_BASE_URL | No | REST host. The server appends /api/v1/developer. | https://api.mainbook.ai |
| MAINBOOK_MCP_TRANSPORT | No | MCP transport to use: 'stdio' (default) or 'http'. | stdio |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| convert_bank_statementA | Convert one PDF bank statement through the complete MainBook workflow: create a job, upload, start, poll, and return structured data. This creates a job and spends page credits; it is not read-only. |
| get_balanceA | Return total, reserved, and available MainBook credits. Every value is measured in PDF pages. |
| list_conversionsA | List one cursor page of conversion jobs visible to the MainBook account. Pass the returned next_cursor to continue. |
| get_conversionA | Get the current state of one MainBook conversion. When successful, return JSON inline or save XLSX/CSV locally over stdio. HTTP mode returns safe download instructions. Use this after convert_bank_statement times out. |
| output_folderA | Read or change the default local result folder. Call with no path to inspect the current setting and allowed folders. Pass an allowed absolute folder, or 'next_to_source' to restore the default behavior. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: convert_bank_statement handles submission, get_balance checks credits, list_conversions enumerates jobs, get_conversion retrieves state/results, and output_folder manages local storage. No overlap in functionality.
Tool names mostly follow a verb_noun pattern with consistent snake_case. 'convert_bank_statement', 'get_balance', 'list_conversions', and 'get_conversion' are clear. 'output_folder' is slightly less standard as a verb but still readable and consistent in style.
Five tools cover the core workflows for a PDF statement converter: submission, credit monitoring, job listing, status retrieval, and output configuration. This is well-scoped without unnecessary extras or missing essentials.
The set provides a complete lifecycle for converting statements: submit, monitor progress, retrieve results, manage output folder, and check credits. Minor gaps like cancel/delete are absent but not critical given the workflow's design.