Bruno API MCP Server
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Exposes Bruno API collections as MCP tools, allowing interaction with APIs defined in Bruno collections through automatic conversion of requests to tools. Supports environment management, variable replacements, and custom request parameters.
Bruno API MCP Server
A Model Context Protocol (MCP) server that exposes Bruno API collections as MCP tools. This server allows you to interact with your Bruno API collections through the MCP protocol, making your API collections accessible to AI agents and other MCP clients.
Why This Matters: Source Code and Data Working Together
When developers need to integrate APIs, they typically face three core challenges:
- Debugging across system boundaries: Diagnosing issues across separate code and data environments requires constant context switching, making troubleshooting inefficient.
- Creating custom tooling: Each third-party API integration requires building and maintaining custom tooling, causing development overhead and technical debt.
- Building service UIs: Developing user interfaces for every backend service adds significant complexity and maintenance costs.
This server solves these precise problems by collocating your source code with your data. It transforms Bruno API collections into Model Context Protocol tools, enabling you to:
- Debug across previously separate environments with complete context
- Turn any API into an agent-ready tool without additional custom development
- Build headless services that can be controlled through AI interfaces
For development teams that need to accelerate API integration while reducing maintenance overhead, this approach fundamentally changes what's possible - making previously complex integrations straightforward and accessible.
Features
- Automatic conversion of Bruno API collections to MCP tools
- Environment management for different API configurations
- HTTP with SSE transport
- Cross-origin support
- Built-in tools for API collection management
Usage
- Install dependencies:Copy
- Start the server with your Bruno API collection:Options:Copy
--bruno-path
or-b
: Path to your Bruno API collection directory (required)--environment
or-e
: Name of the environment to use (optional)--include-tools
: Comma-separated list of tool names to include, filtering out all others (optional)--exclude-tools
: Comma-separated list of tool names to exclude (optional)
Both formats are supported for the tool filtering options:
Copy - Connect from clients:
- Local connection:
http://localhost:8000/sse
- From Windows to WSL:
http://<WSL_IP>:8000/sse
- Get your WSL IP with:
hostname -I | awk '{print $1}'
- Local connection:
Predefined Scripts
The repository includes several predefined npm scripts for common use cases:
Development
Running Tests
Run all tests:
Run specific test file:
Debugging
The server uses the debug
library for detailed logging. You can enable different debug namespaces by setting the DEBUG
environment variable:
Available debug namespaces:
bruno-parser
: Bruno API collection parsing and environment handlingbruno-request
: Request execution and response handlingbruno-tools
: Tool creation and registration with MCP server
Tools
List Environments
Lists all available environments in your Bruno API collection:
- No parameters required
- Returns:
- List of available environments
- Currently active environment
Echo
Echoes back a message you send (useful for testing):
- Parameter:
message
(string)
Bruno API Collection Structure
Your Bruno API collection should follow the standard Bruno structure:
Each request in your collection will be automatically converted into an MCP tool, making it available for use through the MCP protocol.
Using Custom Parameters with Tools
When calling tools generated from your Bruno API collection, you can customize the request by providing:
Environment Override
You can specify a different environment for a specific request:
This will use the variables from the specified environment instead of the default one.
Variable Replacements
You can override specific variables for a single request:
These variables will be substituted in the URL, headers, and request body. For example, if your request URL is:
And you provide { "variables": { "dealId": "abc123" } }
, the actual URL used will be:
Query Parameters
You can add or override query parameters directly:
This will add these query parameters to the URL regardless of whether they are defined in the original request. For example, if your request URL is:
And you provide { "query": { "limit": "10", "search": "keyword" } }
, the actual URL used will be:
This approach is cleaner and more explicit than using variables to override query parameters.
Custom Body Parameters
You can also provide custom parameters in the request body:
Complete Example
Here's a complete example combining all four types of customization:
License
MIT
This server cannot be installed
Exposes Bruno API collections as Model Context Protocol (MCP) tools, allowing AI agents and MCP clients to interact with your API collections.