Skip to main content

Bonito MCP Server

A Model Context Protocol (MCP) server that wraps the Bonito AI Platform REST API. Use it from Claude Desktop, Cursor, or any MCP-compatible client to manage your multi-provider AI infrastructure.

Features

  • Provider Management – Connect and verify AWS Bedrock, Azure OpenAI, GCP Vertex AI, OpenAI, Anthropic, and Groq
  • Model Management – List, sync, and activate models across providers
  • Unified Gateway – Send chat completions through Bonito's OpenAI-compatible gateway
  • Projects – List and create projects (containers for agents, KBs, budgets)
  • Agent Management – Create and execute BonBon and Bonobot agents
  • Knowledge Bases – Create KBs, upload inline documents, and link KBs to agents for RAG
  • Cost & Observability – Track costs per provider and view gateway logs
  • Data Residency – Keep model calls in one geography (CA, US, EU) and see which providers can serve (get_data_residency, set_data_residency)

Total: 24 tools (22 after the 2026-06-07 audit pass; residency tools added 2026-09-25).

Audit notes (2026-06-07)

Tools added in the latest audit pass: list_projects, create_project, upload_to_kb, link_kb_to_agent. Without these, KBs were inert (no way to load docs via MCP) and agents couldn't be scoped to projects (which the post-Phase 1 create_agent flow requires).

Still missing from this MCP surface relative to the live platform — flag for the next pass:

  • Access-token CRUD (bp- and bj- create/list/revoke)
  • Image generation (POST /v1/images/generations)
  • Video generation (POST /v1/videos + status + content)
  • Agent-to-agent connections (connect_agents — handoff / escalation / data_feed / trigger)
  • Agent updates (update_agent)
  • Tier-aware model listing (current list_models is unfiltered)
  • Origami tool surface (16 tools) is intentionally separate; do NOT mirror into MCP without product review.

Quick Start

Install from source

git clone https://github.com/ShabariRepo/bonito.git
cd bonito/mcp-server
pip install -e .

Set your API key

export BONITO_API_KEY="your-bonito-api-key"

Run (stdio – for Claude Desktop)

bonito-mcp

Run (SSE – for network clients)

bonito-mcp --transport sse --port 8080

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "bonito": {
      "command": "bonito-mcp",
      "env": {
        "BONITO_API_KEY": "your-bonito-api-key"
      }
    }
  }
}

Docker

docker build -t bonito-mcp .
docker run -e BONITO_API_KEY="your-key" -p 8080:8080 bonito-mcp

Available Tools

Tool Description
list_providers List connected AI providers
connect_provider Connect a new provider
verify_provider Verify provider credentials
list_models List models (with filters)
sync_models Sync models from providers
activate_model Activate a model for the gateway
chat_completion Send a chat completion request
list_gateway_keys List gateway API keys
create_gateway_key Create a new gateway key
gateway_usage View usage statistics
list_agents List agents in a project
create_agent Create a BonBon or Bonobot agent
execute_agent Execute an agent
get_agent Get agent details
list_knowledge_bases List knowledge bases
create_knowledge_base Create a knowledge base
get_costs Get cost breakdown by provider
get_gateway_logs View gateway request logs

Environment Variables

Variable Required Default Description
BONITO_API_KEY Yes – Your Bonito API key
BONITO_API_URL No https://api.getbonito.com API base URL

License

MIT

Metadata

Release files for bonito-mcp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bonito-mcp 1.1.0
File Size Uploaded Provenance Actions
bonito_mcp-1.1.0.tar.gz 7.9 kB Without provenance Details for bonito_mcp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bonito-mcp 1.1.0
File Interpreter ABI Platform Actions
bonito_mcp-1.1.0-py3-none-any.whl Python 3 none any Details for bonito_mcp-1.1.0-py3-none-any.whl

Total release size: 16.9 kB

Release files / bonito_mcp-1.1.0.tar.gz

Download URL bonito_mcp-1.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4559ee2167d33b2248dddb1735e30c5c054015cb10d2ef48276d0452056fbef6
BLAKE2b-256 checksum
How to use checksums
d843b59735a1d850be8dbbabbc50380686df3adae969a273079617f17bc495be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / bonito_mcp-1.1.0-py3-none-any.whl

Download URL bonito_mcp-1.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7afc2060039c168299a70ff4f49889c2b9f7fe91b13fab311a2232c510fac06
BLAKE2b-256 checksum
How to use checksums
a93ac466fdb945db6b436fba3763fb3a612a47589a39e1539adb4f3111b7c20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for bonito-mcp 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page