bookamate-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
bookamate
Python client (bookamate) and local MCP server (bookamate-mcp) for the bookamat API, in one uv workspace. Unofficial; not affiliated with or endorsed by bookamat.
Status: early development, not yet released.
Packages
Package | What it is |
| Typed client for the bookamat API, async with a generated sync variant |
| Local MCP server for AI agents such as Claude Code and Mistral Vibe, built on |
| Local mock of the bookamat API for tests and for trying things out; not published |
The MCP server runs only locally, over stdio, with your own bookamat username and personal API key. It talks to bookamat directly; there is no hosted version. Note that your agent's MCP client passes tool results, including booking data, to the AI provider behind it.
Related MCP server: hidma-mcp
Settings
The client and the MCP server take their settings from environment variables. With the client, an argument to Client(...) or AsyncClient(...) wins over its variable.
Variable | Argument | Default | What it is |
|
| required | Your bookamat username |
|
| required | Your personal API key, under "Mein Account" in bookamat |
|
|
| The API root; point it at |
|
| none | Your Subdomain, as in |
|
|
| Attempts per request, the first included |
|
|
| Seconds all attempts of one request may take |
|
|
| Seconds to wait for a connection |
|
|
| Seconds to wait for an answer |
A client sends one request at a time, since bookamat rejects parallel requests of one user. It retries connection errors, and for reading requests also timeouts and 502, 503 and 504; it never resends a POST or PATCH that reached bookamat. A 429 is retried after its Retry-After when that fits the time left; a longer wait, e.g. a reached hourly limit, is raised at once as api:429, with the wait at the end of its message. A 429 without Retry-After is retried like a 503.
Neither reads a .env file itself. To keep the values in one, let the tool that starts the program load it, e.g. uv run --env-file or uvx --env-file.
Registering the MCP server from PyPI
Point your agent at uvx with the absolute path of your .env file, e.g. in Claude Code:
claude mcp add bookamate -- uvx --env-file /absolute/path/to/.env bookamate-mcpThe path must be absolute: the agent starts the server from a working directory of its own.
Development
Commands
Run from the repo root. Where a command needs an absolute path, replace /path/to/bookamate with your checkout. The sections below explain them and link back here.
Task | Command | Note |
Set up |
| |
Install the hooks |
| Once; the hooks then run on every commit |
Tests |
| One package: |
Lint and types |
| |
All hooks |
| ruff, pyright, markdownlint, gitleaks, zizmor, sync-client check. Tracked files only: |
Regenerate the sync client |
| After changing |
SonarQube analysis |
| Needs |
Check the upstream docs for changes |
| Downloads and reports, writes nothing |
Refresh the upstream docs mirror |
| Maintainer only; then update the impact table |
Probe the live API, report only |
| Maintainer only, real account: GET, HEAD and OPTIONS on every documented path (about 130 requests), one at a time. Keeps status, headers, OPTIONS and error bodies, and only the shape of GET bodies. |
Record the live probe |
| Maintainer only; writes |
Compare the models with the live probe |
| Local files only: reads |
Start the mock server |
| Prints its base URL; |
MCP Inspector against the mock |
| Mock running. |
MCP Inspector against your account |
| Real account: read only. Optional: |
One MCP call without a browser |
| Mock running. |
Register in Claude Code against the mock |
| Mock running |
Register in Claude Code against your account |
| Real account: read only |
Remove a Claude Code registration |
| Or |
Checks, upstream docs and SonarQube
CI runs the tests and all hooks on every pull request and on every push to main. Tests run against bookamate-mock, a local mock of the bookamat API, and never call a real account.
The upstream docs commands mirror the upstream docs into docs/bookamat-api/upstream/ (gitignored, German, one .txt per page). Each version the script finds goes into a new folder named after the fetch time (2026-11-30T160515Z), upstream/latest points at the newest, and older folders stay untouched, so diff -r shows what changed between any two. A fetch without changes writes nothing. For each new version it finds compared with the previous one, the script adds an entry to the tracked docs/bookamat-api/upstream-changes.md: the new upstream changelog entries and the pages added, removed and changed; before committing, update the impact table and the entry's Affects: line as the table describes. Rerun it before working on a resource and after a new upstream changelog entry; it lists the changed pages and prints the newest changelog date. --base-url mirrors from another docs root. The first run after updating moves an older flat mirror into a dated folder.
SonarQube analysis runs locally against your own server, with the command above. The settings (project key, sources, exclusions) are in [tool.sonar] in pyproject.toml.
Keeping secrets and real data out of the repo
The repo is public and must never contain credentials or data from a real bookamat account. gitleaks checks this in the pre-commit hook and again in CI, since a local hook can be skipped. Besides secrets, it rejects a real Subdomain, in a web UI address or in BOOKAMATE_SUBDOMAIN: docs and examples use example, your-subdomain or <subdomain> (.gitleaks.toml). GitHub push protection is enabled as a further check.
Credentials during development
Credentials live in one .env file in the repo root, which is gitignored; start it from the committed template with cp .env.example .env. It holds one set of variables per environment: the plain names for your real account, the same names with MOCK for the mock server, which accepts any value.
BOOKAMATE_USERNAME=your-username
BOOKAMATE_API_KEY=your-api-key
# Optional: your Subdomain, as in https://your-subdomain.bookamat.com/, for links
# into the web UI. The API doesn't expose it.
BOOKAMATE_SUBDOMAIN=your-subdomain
# Optional; defaults to https://www.bookamat.com/api/v1/
# BOOKAMATE_BASE_URL=
BOOKAMATE_MOCK_USERNAME=dev
BOOKAMATE_MOCK_API_KEY=dummyTools load the file; the code only reads environment variables and never opens .env itself:
uv run --env-file /path/to/bookamate/.env …for the client and the MCP server (used in the agent setups below). Variables already set in the environment win over the file.{{$dotenv %keyVar}}in the.httpfiles. VS Code's REST Client finds the root.envby searching upwards from the.httpfile, and the selected REST Client environment names which set to read."envFile": "${workspaceFolder}/.env"in alaunch.jsondebug configuration.
Define the REST Client environments in your VS Code user settings (or .vscode/settings.json, which is gitignored). They hold no secrets, only the base URL and the names of the variables to read:
"rest-client.environmentVariables": {
"$shared": {
"country": "at",
"year": "2026"
},
"live": {
"base_url": "https://www.bookamat.com/api/v1",
"username_key": "BOOKAMATE_USERNAME",
"api_key_key": "BOOKAMATE_API_KEY",
"subdomain_key": "BOOKAMATE_SUBDOMAIN"
},
"mock": {
"base_url": "http://127.0.0.1:8000/api/v1",
"username_key": "BOOKAMATE_MOCK_USERNAME",
"api_key_key": "BOOKAMATE_MOCK_API_KEY"
}
}country and year choose the annual package the requests read. Keep base_url in each environment, not in $shared, so that mock never reaches the real API. Select an environment with Ctrl+Alt+E; with none selected, every {{$dotenv %…_key}} stays empty.
Keep credentials out of every other file, including .vscode/, launch.json, *.code-workspace files and .http files.
Trying your working copy in an agent
To try local changes in a real client, point it at uv run in your checkout. uv run runs the source as it is on disk, so every server restart picks up your edits.
The server then talks to your real bookamat account. bookamat has no test environment and the account is audited, so try only reading this way. To try writing, use the mock server instead (see below).
Use a name of its own (here bookamate-dev) so it can sit next to an installed version.
Claude Code
Register it with the Claude Code command for your account. Check that it is connected with /mcp. After changing code, reconnect it in /mcp (or restart Claude Code).
Mistral Vibe
Add to ~/.vibe/config.toml, then restart Vibe:
[[mcp_servers]]
name = "bookamate-dev"
transport = "stdio"
command = "uv"
args = ["run", "--env-file", "/path/to/bookamate/.env", "--directory", "/path/to/bookamate", "bookamate-mcp"]Without an agent
The MCP Inspector lists the tools and shows their raw results, in a web UI or, with --cli, for one call in the terminal. See the Inspector commands.
Trying writes against the mock server
Start the mock and register a second server that points at the base URL it prints, with dummy credentials instead of the .env file; both commands are in the table. The mock accepts any credentials, and its data is synthetic. Only the resources and methods it mocks are available; everything else answers 501 Not Implemented.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, operate and chat with Zihin.ai agents. Sign in with your Zihin account or use an API key.
Connect AI assistants to your Mac and Linux computers with scoped access to local files and tools.
Let ChatGPT and Claude read and edit files, search and run commands on your own computer.
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables an AI agent to run local tools on the user's own machine via stdio, including command execution, workspace file read/write, and system status checks.52MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read the signed-in account and its projects, list timesheet entries, and log new time against hidma through a stdio interface. It reuses the saved CLI session, so no separate authentication is required.MIT

@klappay/mcpofficial
AlicenseAqualityBmaintenanceLets an AI assistant run locally over stdio to inspect and test the Klap Core API — looking up charges and timelines, listing webhooks and deliveries, checking accepted token/network pairs, querying metrics, and, in test mode, creating charges, re-checking them on-chain, retrying deliveries and driving sandbox payments. Live environments are read-only unless writes are explicitly opted into, and money-moving or endpoint-management operations are never exposed.16102 npmMIT- AlicenseAqualityCmaintenanceEnables AI agents to browse customers, bookings, and availability while any booking creation or cancellation stays gated behind a human-approved, single-use token cryptographically bound to the exact arguments. Runs over stdio or Streamable HTTP and enforces the read/write separation in host code with a full audit trail.7MIT