bruno-mcp
The Bruno MCP server provides read-only access to Bruno API collections, allowing you to discover, search, and inspect endpoint contracts without executing requests.
List collections and browse their folder hierarchy with pagination, subtree filtering, and depth control.
List and filter endpoints by HTTP method, request type (HTTP, GraphQL, gRPC, WebSocket), folder, path prefix, or tags.
Search endpoints with field-aware ranked text search, returning scores and matched fields; supports general, contract, and documentation modes with tag/method/folder filters.
Retrieve complete sanitized endpoint contracts individually by stable ID or method+path, or batch up to 25 by stable IDs. Contracts include method, URL, auth, body, docs, tests, but sensitive values are omitted.
Get saved response examples (status, content type, body) separately.
Check index status for generation time, endpoint count, and parser warnings.
Additional features: automatic indexing of .bru and OpenCollection YAML files, mixed-format collections, gradual migrations, persistent indexes with fingerprints, and background reindexing.
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 "Deploy 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-mcp search 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 classic .bru and OpenCollection YAML (.yml/.yaml)
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
.bruand OpenCollection YAML requestsMixed-format collection support during gradual migrations
Official 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
MCP
2026-07-28support with automatic fallback for 2025-era clientsA reusable TypeScript API
Related MCP server: Bruno MCP Server
Requirements
Node.js 20.11 or newer
A Bruno collection directory with
bruno.json,opencollection.yml, or request files in either supported format
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/collectionMCP client configuration
Example configuration for clients that support local stdio servers:
{
"mcpServers": {
"bruno": {
"command": "npx",
"args": [
"-y",
"@dmpv/bruno-mcp@0.6.0",
"serve",
"/absolute/path/to/bruno-collection"
]
}
}
}The stdio server automatically negotiates MCP 2026-07-28 with modern
clients and continues to serve clients that use the 2025 initialization
handshake.
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": 4,
"generatedAt": "2026-07-27T00:00:00.000Z",
"generator": {
"name": "@dmpv/bruno-mcp",
"version": "0.6.0"
},
"collection": {
"name": "Example API",
"endpointCount": 2,
"sourceFingerprint": "...",
"formats": ["bru", "opencollection-yaml"]
},
"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 Bruno source
files; otherwise it safely rebuilds from source. Each endpoint exposes
sourceFormat as either bru or opencollection-yaml. 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 the project's automated validation suite.
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
Available Tools
8 toolsget_endpointGet a Bruno endpointB
Returns a complete sanitized endpoint contract by stable ID, or by exact method and normalized path.
Inputs: id, path, method, include_examples.
get_endpoint_examplesGet Bruno endpoint response examplesB
Lean examples-only alternative to get_endpoint(include_examples: true). Returns saved status, content type, and complete response bodies without the full contract.
Inputs: id, path, method.
get_endpointsGet multiple Bruno endpointsA
Returns up to 25 complete sanitized endpoint contracts by stable ID in one call. Use include_examples only when complete saved responses are required.
Inputs: ids (required), include_examples.
get_index_statusGet Bruno index statusA
Returns index generation time, endpoint count, and parser warnings.
Inputs: no named parameters.
list_collectionsList Bruno collectionsA
Returns the active Bruno collection and its endpoint count.
Inputs: no named parameters.
list_endpointsList Bruno endpointsC
Lists endpoint summaries, optionally filtered by method, request type, folder, or tags.
Inputs: tags, type, limit, folder, +2 more.
list_foldersList Bruno collection foldersB
Returns a paginated collection folder hierarchy. Use parent and depth to explore a subtree without loading the complete hierarchy.
Inputs: depth, limit, offset, parent.
search_endpointsSearch Bruno endpointsA
Searches endpoints with field-aware ranking. Returns score and matchedFields for every result; docs-only matches are excluded by default.
Inputs: query (required), tags, type, limit, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct operation: listing collections, folders, endpoints, getting single/bulk endpoints, searching, examples, and index status. No overlap in functionality.
All tools follow the verb_noun pattern consistently, using 'list_' for enumeration and 'get_' for retrieval, with clear singular/plural distinctions (e.g., get_endpoint vs get_endpoints).
With 8 tools, the server is well-scoped for its purpose of inspecting Bruno API collections. Each tool has a clear role, and the count is neither too sparse nor excessive.
The tool surface covers all essential read operations for collections, folders, endpoints, and search. Missing write operations (create, update, delete) are outside the intended scope, though a tool to list tags or metadata could be a minor addition.
Maintenance
Related MCP Connectors
Federated commerce search across independent WooCommerce merchants. Keyless, read-only MCP server.
Live public MCP Index. Search, recommend, and call healthy MCP servers.
Read-only MCP server for repository context: context packs, graph impact analysis, and validation.
Read-only MCP server over the developer docs for the portfolio's JSON API, MCP, A2A and NLWeb.
Related MCP Servers
- MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that enables programmatic creation and management of Bruno API testing collections, environments, and requests through standardized MCP tools.135MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that executes requests from Bruno API collections via the Bruno CLI tool, enabling API request execution and collection management.4MIT
- AlicenseAqualityDmaintenanceA read-only MCP server for navigating OpenAPI / Swagger specifications, enabling agents to search endpoints, retrieve parameters and schemas, and inspect authentication without loading the full spec into context.9165 npmMIT