
Mcp Bruno
io.github.kta41v0.1.1Updated Sep 30, 2026
Python MCP server for running and inspecting Bruno API collections.
Installation
In SourceWeft
- Open Mcp Bruno in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
π Bruno MCP Server for Python
Python MCP server for running Bruno collections. It exposes a Model Context Protocol server over
stdiowith tools that run collections through thebruCLI and return normalized JSON results.
Note: All examples in this repository use placeholder names (project1, /home/user/project/bruno, example.test). Replace them with your own paths and collection names.
β¨ Features
- Run Bruno collections natively using the Bruno CLI.
- Discover collections and sibling environment files automatically.
- Support environment files and dynamic environment variables.
- Secure Secret Injection: Pass secrets to Bruno without exposing values to the LLM via
inherited_variables. - Filter Inspection: Inspect documented query filters and run temporary filter scenarios without modifying the source collection.
- Two-Phase Full Validation: Execute baseline tests + all documented filters in a single tool call.
- Normalized Outputs: Return structured execution results containing
success,summary,failures, andtimings.
π¦ Requirements
- Python: 3.10 or newer
- Package Manager:
uv - Node Package Manager:
npm(only if the Bruno CLI is not already installed)
The installer checks whether the Bruno CLI command bru is available. If it is missing and npm is available, it automatically installs it with:
π Installation & Running
1. Installation
Install dependencies using uv:
(If your configured package index does not mirror the MCP Python SDK, point uv at PyPI for the sync: UV_DEFAULT_INDEX=https://pypi.org/simple uv sync)
2. Running the Server
You can run the server directly using uv:
Alternatively, run the module directly inside the uv environment: uv run python -m bruno_mcp
βοΈ Configuration
MCP Configuration
Example MCP stdio configuration from this workspace root:
Configuration File (bruno-mcp.toml)
Default roots and auth aliases can be configured in bruno-mcp.toml in the current working directory, or globally in ~/.config/bruno-mcp/config.toml.
See bruno-mcp.example.toml for a commented template:
Note: The installer creates
~/.config/bruno-mcp/config.tomlwith a dummy root. Localbruno-mcp.tomlfiles are git-ignored so real paths and environment names are never committed.
π» Local VS Code Installation
From the project root, install dependencies with uv:
Ensure the Bruno CLI is available (bru --version). This repository includes .vscode/mcp.json, allowing VS Code to discover the local MCP server from the workspace:
Reload the VS Code window after syncing dependencies. The bruno-runner server should now be available in the MCP servers list.
Global Installation
To install the MCP server in the VS Code user profile so it is available from any workspace:
(To also install the reusable Copilot prompt and agent globally, append --with-copilot-customizations to the command above).
To install it manually in another local VS Code workspace, change the command args to include --directory:
π§° Available Tools
π list-collections
Lists Bruno collections below a root directory or configured roots. Use it when the user provides a partial collection name instead of a full path.
root(optional): Bruno root directory (usually containscollections/andenvironments/).query(optional): Case-insensitive text used to filter collection names and paths.
βΆοΈ run-collection
Runs a Bruno collection and returns normalized execution results.
collection(required): Path to the Bruno collection.environment(optional): Path to an environment file.variables(optional): Environment variables asKEY=valuestrings.inherited_variables(optional): Names of environment variables to read from the MCP server process and pass to Bruno without exposing values to the LLM.
View detailed authentication & path behavior
Auth Handling:
For secrets, prefer inherited_variables instead of writing values in chat. By default, the secure MCP input BRUNO_AUTH_TOKEN can satisfy Bruno variables named bearerToken, BEARER_TOKEN, AUTH_TOKEN, TOKEN, accessToken, or access_token.
Supported Collection Inputs:
- Collection directory:
/path/to/bruno/collections/project1 - Bruno request file:
/path/to/bruno/collections/project1/request.bru - Internal
.vrurequest file:/path/to/bruno/collections/project1/request.vru - Open collection descriptor:
/path/to/bruno/collections/project1/opencollection.yml
When Bruno failures look like authentication problems, the response includes auth_failure: true and an auth_message.
Example with inherited secrets:
π discover-environments
Inspects the folder structure around a Bruno collection and returns the sibling environments directory, available environment names, and variable names (without returning secret values).
π read-result-artifact
Reads a bounded, redacted summary from the raw Bruno JSON artifact path returned by run-collection.
path(required): Theartifact.pathvalue returned by a previous run.max_items(optional): Number of response items to sample per request (default 3, max 20).
π§ͺ list-request-filters & run-filter-scenarios
list-request-filters: Inspects YAML request files and returns query params split into enabled and disabled groups.run-filter-scenarios: Runs temporary request variants with selected disabled query params enabled without modifying the source files.
π‘οΈ run-full-validation
Two-phase orchestration in a single tool call:
- Baseline: Runs the collection once and checks every endpoint responds without errors (no
4xx/5xx). - Filters: Only runs if the baseline is green. Automatically discovers and tests every disabled query filter across every endpoint.
π€ Prompt and Agent Automation
The project includes reusable Copilot prompt and agent templates:
- Prompt template:
copilot/prompts/run-bruno-collection.prompt.md - Agent template:
copilot/agents/bruno-runner.agent.md
Install them globally with:
The agent will seamlessly navigate the workspace, discover collections/environments, handle credentials securely via inherited_variables, and return detailed execution summaries:
π³ Docker
The Docker image installs both this Python server and the Bruno CLI:
π οΈ Development & Project Structure
Commands:
- Compile-check the sources:
uv run python -m compileall src - Run the test suite:
uv run python -m unittest discover -s tests -v
Structure:
mcp-name: io.github.kta41/mcp-bruno
π License
Released under the MIT License.
Source: README.md at commit cecfd4a
Tools
0Version history
1- v0.1.1LatestSep 30, 2026


