b2-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP listen port (default: PORT or 3000) used when no --port argument is provided | 3000 |
| B2_REGION | No | Fallback/default S3-compatible endpoint region; authorized B2 responses override this for S3/report tools | us-west-004 |
| B2_APP_KEY | No | Legacy alias for B2_APPLICATION_KEY retained for compatibility | |
| B2_LOG_FILE | No | Optional path for redacted structured JSON logs. When set, the file replaces stderr; stdout is never used for logs | stderr |
| B2_HTTP_HOST | No | Standalone Node HTTP listen host; set to 127.0.0.1 when binding behind a same-host reverse proxy | |
| B2_APP_KEY_ID | No | Legacy alias for B2_APPLICATION_KEY_ID retained for compatibility | |
| B2_MASTER_KEY | No | Master credential secret for SDK-backed Partner/Groups tools; required with Partner API entitlement for those operations | |
| B2_SECRET_SINK | No | Durable-secret output mode: file, inline, or off. File mode supports b2_create_key and b2_create_group_member; b2_reserve_trial_create_account requires explicit inline mode | file |
| B2_MAX_SESSIONS | No | HTTP transport: global concurrent in-flight request cap | 1000 |
| B2_ALLOWED_HOSTS | No | HTTP transport Host allowlist (DNS-rebinding protection) — set for any internet-facing HTTP deployment | |
| B2_MASTER_KEY_ID | No | Master credential ID for SDK-backed Partner/Groups tools; required with Partner API entitlement for those operations | |
| B2_MCP_TRANSPORT | No | CLI default transport when no stdio/http argument or --transport flag is passed; Docker images set this to http | stdio |
| B2_MCP_UA_SUFFIX | No | Optional operator token appended after the built-in b2-mcp/<version> product token on the outbound User-Agent | |
| B2_ALLOWED_ORIGINS | No | HTTP transport Origin allowlist (DNS-rebinding protection) — set for any internet-facing HTTP deployment | |
| B2_APPLICATION_KEY | Yes | Application key secret | |
| B2_SECRET_SINK_FILE | No | Append-only plaintext JSONL credential ledger for file sink mode | ~/.b2-mcp/secrets.jsonl |
| B2_MCP_OUTPUT_FORMAT | No | LLM-facing TextContent.text format for structured successes: compact json or opt-in toon | json |
| B2_APPLICATION_KEY_ID | Yes | Application key ID (non-master) — the workhorse for native B2 and S3-compatible tools | |
| B2_DESTRUCTIVE_POLICY | No | Gate on destructive tools: confirm, elicit, block, or allow | confirm |
| B2_MCP_RATE_LIMIT_RPS | No | HTTP transport: per-credential request throttling (requests per second) | 60 |
| B2_ALLOW_UNSCOPED_KEYS | No | Explicitly allow b2_create_key to mint unscoped keys with write/delete capabilities | false |
| B2_TRUST_PROXY_HEADERS | No | HTTP transport: trust X-Forwarded-For / X-Real-IP for unauthenticated admission keys only behind a trusted proxy | false |
| B2_ALLOW_INLINE_SECRETS | No | Dedicated HTTP/serverless opt-in required before B2_SECRET_SINK=inline can return durable secrets in MCP responses | false |
| B2_HTTP_CREDENTIAL_MODE | No | headers, server, or principal; unset preserves existing header-based clients | headers |
| B2_MAX_SESSIONS_PER_KEY | No | HTTP transport: per-credential concurrent in-flight request cap | 20 |
| B2_MCP_RATE_LIMIT_BURST | No | HTTP transport: per-credential request throttling burst size | 120 |
| B2_ALLOW_KEY_MGMT_GRANTS | No | Explicitly allow b2_create_key to mint keys with listKeys, writeKeys, or deleteKeys | false |
| B2_CAPABILITY_CACHE_TTL_MS | No | Bounded capability-discovery cache TTL | 300000 |
| B2_DESTRUCTIVE_ELICITATION | No | Set to off, false, or 0 to disable MCP form elicitation | on |
| B2_HTTP_HEADERS_TIMEOUT_MS | No | Standalone Node HTTP transport headers timeout | 10000 |
| B2_HTTP_REQUEST_TIMEOUT_MS | No | Standalone Node HTTP transport request timeout | 30000 |
| B2_MAX_KEY_DURATION_SECONDS | No | Optional maximum for b2_create_key; when set, non-expiring keys and longer durations are refused before any B2 create call | |
| B2_PRINCIPAL_CREDENTIAL_MAP | No | JSON map from verified MCP principal to a customer-managed credential reference | |
| B2_STDIO_CAPABILITY_TIMEOUT_MS | No | Stdio bootstrap capability-discovery deadline; local expiry starts with a fail-closed tool surface | 10000 |
| B2_CAPABILITY_CACHE_MAX_ENTRIES | No | Bounded capability-discovery cache maximum entries | 10000 |
| B2_S3_SAVE_TO_PATH_IDLE_TIMEOUT_MS | No | Idle timeout while streaming s3_get_object results to saveToPath | 60000 |
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
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/backblaze-labs/b2-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server