bruno-mcp
Provides tools for indexing, searching, and retrieving HTTP, GraphQL, gRPC, and WebSocket API requests from Bruno collections, enabling endpoint discovery and contract inspection without executing requests.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bruno-mcpsearch endpoints for 'payment'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bruno MCP
A read-only Model Context Protocol server and indexer for Bruno API collections.
Bruno MCP discovers .bru request files, parses them with Bruno's official
filestore package, builds a sanitized AI-oriented index, and gives MCP clients
deterministic tools for endpoint discovery. It never sends API requests.
Status: early
0.xrelease. The index schema may evolve before1.0.
Features
Automatic recursive discovery of
.brurequestsOfficial Bruno parser via
@usebruno/filestoreHTTP, GraphQL, gRPC, and WebSocket request indexing
Sanitized contracts that omit header, parameter, and auth values
Explainable, field-aware search with scores and matched fields
Explicit and folder-derived tags
Versioned persistent JSON index with source fingerprints
Automatic loading of fresh
docs/api-index.jsonor.bruno-mcp/api-index.jsonPaginated folder hierarchy with subtree/depth filtering
Batch contract retrieval by stable endpoint IDs
Complete saved response examples without extra source parsing
Automatic reindexing while the MCP server is running
A reusable TypeScript API
Related MCP server: Bruno MCP Server
Requirements
Node.js 20.11 or newer
A Bruno collection directory (a
bruno.jsonfile is recommended but not required)
Quick start
Run the MCP server against a collection:
npx -y @dmpv/bruno-mcp serve ./path/to/collectionGenerate a persistent index:
npx -y @dmpv/bruno-mcp index ./path/to/collection \
--output ./generated/api-index.jsonInspect a collection without writing files:
npx -y @dmpv/bruno-mcp inspect ./path/to/collectionThe unscoped npm name bruno-mcp is owned by another publisher, so this
project is distributed as @dmpv/bruno-mcp. Its executable is still named
bruno-mcp.
MCP client configuration
Example configuration for clients that support local stdio servers:
{
"mcpServers": {
"bruno": {
"command": "npx",
"args": [
"-y",
"@dmpv/bruno-mcp@0.4.0",
"serve",
"/absolute/path/to/bruno-collection"
]
}
}
}Pin a version in team configuration. During local development, replace the
package command with node /absolute/path/to/bruno-mcp/dist/cli.js.
MCP tools
Tool | Purpose |
| Describe the active collection |
| List the folder hierarchy and endpoint counts |
| Filter endpoint summaries |
| Rank endpoints by a text query |
| Get a sanitized contract by ID or method/path |
| Get up to 25 contracts by stable ID in one call |
| Get saved response examples and complete bodies |
| Check generation time and parser warnings |
get_endpoint includes method, URL, normalized path, auth mode, body content,
field names, documentation, test/assertion presence, source file, and a stable
contract hash. Pass include_examples: true to include saved response examples
in the same call. Secret-bearing auth, header, and parameter values are not
indexed.
get_endpoint_examples returns examples already stored in the index, including
the saved response status, content type, and complete body, while omitting the
saved request and other response header values.
search_endpoints returns a numeric score and matchedFields with every
result. Its default all mode excludes matches found only in low-signal
documentation text. Use search_mode: "docs" for an intentional documentation
search, or "contract" to ignore docs entirely. Tag filters match both explicit
Bruno tags and derivedTags generated from the endpoint folder, method, request
type, and known current/legacy roots.
list_folders accepts parent, depth, offset, and limit. get_endpoints
accepts at most 25 stable IDs and reports missing IDs without failing the whole
batch.
Index command
The generated JSON has a versioned top-level shape:
{
"schemaVersion": 3,
"generatedAt": "2026-07-27T00:00:00.000Z",
"generator": {
"name": "@dmpv/bruno-mcp",
"version": "0.4.0"
},
"collection": {
"name": "Example API",
"endpointCount": 2,
"sourceFingerprint": "..."
},
"sources": [],
"folders": [],
"endpoints": [],
"warnings": []
}The default output is .bruno-mcp/api-index.json, which is ignored by Git.
Choose a tracked output path when the index is intended as a versioned build
artifact. serve automatically checks docs/api-index.json and
.bruno-mcp/api-index.json. It loads a persistent index only when its schema
is supported and its source fingerprint matches the current .bru files;
otherwise it safely rebuilds from source. Use serve --index <file> to select
an explicit index.
Library API
import {
buildBrunoIndex,
searchIndex,
writeBrunoIndex
} from "@dmpv/bruno-mcp";
const index = await buildBrunoIndex("./collection");
const endpoints = searchIndex(index, {
query: "create order",
method: "POST"
});
await writeBrunoIndex(index, "./generated/api-index.json");Development
npm install
npm run check
npm run dev -- serve ./tests/fixtures/sample-collectionnpm run check runs type checking, linting, tests, a production build, and an
npm package dry run.
Publishing
Confirm the npm account owns or has access to the
@dmpvscope.Add an npm automation token as the
NPM_TOKENrepository secret.Update
package.jsonto the release version and merge it.Push a matching version tag, such as
v0.1.0.
The tag workflow validates the package and publishes it with npm provenance. Publishing is intentionally not triggered by ordinary branch pushes. A GitHub release can be created from the same tag after the package is available.
Security and scope
Bruno MCP is read-only. Version 0.x does not execute requests, scripts,
tests, or assertions. It only parses local files.
Body content is included because it is part of an endpoint contract. Do not put real secrets in request bodies. Auth values, header values, and parameter values are deliberately omitted from the index.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/TheDMPV/bruno-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server