Bun MCP server
https://bun.com/docs/mcp
Bun runs a remote MCP server an agent can read without logging in. It exposes 4 tools: search_bun, read_bun_page, list_bun_pages and grep_bun. We read its tool list, then made 12 calls to the 4 tools it marks read-only.
Connect
How to add the Bun MCP server
The server speaks Streamable HTTP at the address below. Listing its tools needs no key.
https://bun.com/docs/mcp
claude mcp add --transport http bun https://bun.com/docs/mcp
{
"mcpServers": {
"bun": {
"url": "https://bun.com/docs/mcp"
}
}
}Tools
4 tools, about 990 tokens
An agent pays about 990 tokens for this list and the server’s instructions on every request, before it has done anything. Every tool is marked read-only. Descriptions are quoted from the server.
| Tool | What the server says it does |
|---|---|
search_bun | Search the Bun documentation, guides and blog. Returns ranked sections, each with a title, a deep link, the page path and the section's markdown. Use for conceptual or how-to questions… |
read_bun_page | Return the full markdown of one page by its site path, e.g. "/docs/runtime/http/websockets", "/guides/websocket/pubsub", "/blog/bun-v1.3". A full bun.com URL is accepted too. Use after… |
list_bun_pages | List the pages under a path prefix — one line per page: path, title, description. Use it to see what exists in one area ("/docs/runtime", "/guides/websocket", "/blog") before reading or… |
grep_bun | Regex search over the markdown of every page (or the pages under given paths), returning matching lines with line numbers and optional context, grouped by page. Use for exact identifiers,… |
Score
85 out of 100, check by check
We read its tool list, then made 12 calls to the 4 tools it marks read-only. What each check means and how it is weighted →
Server
100/100- The server sends instructions (555 characters).
- 4 tools.
- The tool list and instructions cost about 990 tokens, on every request an agent makes.
Tool descriptions
100/100- Every tool has a description of 40 characters or more.
- No vague tool descriptions.
Parameters
92/100- All 11 parameters are described.
- Constrained values use enums.
- 1 of 2 list or search tools have no way to ask for less (no limit, page or cursor parameter):
list_bun_pages.Fix: Add alimitwith a small default, and a cursor when there can be more: the agent pays for every row it didn't need.
Safety hints
100/100- Every tool is annotated.
Error quality
93/100- 2 of 8 wrong calls were accepted without an error:
search_bun(invalidsection),list_bun_pages(wrong type forpath).Fix: Validate arguments against the tool's schema before running it, and answer a wrong call with an error: an accepted wrong call gives the agent a result it trusts. - All 6 errors name the parameter that was wrong.
- No error is empty, generic or a stack trace.
- Errors come back as tool results (
isError: true), which every client shows to the model.
Responses
40/100- The largest of 3 responses is about 57,200 tokens (
list_bun_pages).Fix: Return less by default (a limit, shorter fields, ids the agent can fetch): clients cut or refuse tool output around 25,000 tokens, and the agent pays for all of it. - 3 calls: median 0.3 s, slowest 0.3 s.
Evidence
What the server answered
Every call we made, what we sent and what came back. A wrong call should be refused with an error that names the parameter, so the agent’s next call can be right.
| Tool | We sent | Result | What the agent reads |
|---|---|---|---|
search_bun | A plain call | Answered | About 1,609 tokens |
search_bun | Left out query | Refused | search_bun: `query` is required. |
search_bun | Wrong type for query | Refused | search_bun: `query` is required. |
search_bun | Invalid option for section | Accepted, no error | Title: bun:test/consistent-test-it Link: https://bun.com/docs/lint/rules/bun-test/consistent-test-it Page: /docs/lint/rules/bun-test/consistent-test-it (bun:test/consistent-test-it) Content: #… |
read_bun_page | A plain call | Error on our sample input | No page at /test. Use search_bun or list_bun_pages to find it. |
read_bun_page | Left out path | Refused | read_bun_page: `path` is required. |
read_bun_page | Wrong type for path | Refused | read_bun_page: `path` is required. |
grep_bun | A plain call | Answered | About 7,022 tokens |
grep_bun | Left out pattern | Refused | grep_bun: `pattern` is required. |
grep_bun | Wrong type for pattern | Refused | grep_bun: `pattern` is required. |
list_bun_pages | A plain call | Answered | About 57,228 tokens |
list_bun_pages | Wrong type for path | Accepted, no error | 1577 pages under /: /blog — blog /blog/behind-the-scenes-of-bun-install — Behind The Scenes of Bun Install — Learn how Bun is able to cut install times by up to 25×. Bun skips Node.js's overhead with… |
Fix first
3 fixes, by points lost
- Return less by default (a limit, shorter fields, ids the agent can fetch): clients cut or refuse tool output around 25,000 tokens, and the agent pays for all of it. Responses
- Validate arguments against the tool's schema before running it, and answer a wrong call with an error: an accepted wrong call gives the agent a result it trusts. Error quality
- Add a
limitwith a small default, and a cursor when there can be more: the agent pays for every row it didn't need. Parameters
Improve the MCP server at https://bun.com/docs/mcp so AI agents can use it. A test on 1 December 2026 (https://trybackloop.com/mcp/bun) found: 1. The largest of 3 responses is about 57,200 tokens (`list_bun_pages`). Fix: Return less by default (a limit, shorter fields, ids the agent can fetch): clients cut or refuse tool output around 25,000 tokens, and the agent pays for all of it. 2. 2 of 8 wrong calls were accepted without an error: `search_bun` (invalid `section`), `list_bun_pages` (wrong type for `path`). Fix: Validate arguments against the tool's schema before running it, and answer a wrong call with an error: an accepted wrong call gives the agent a result it trusts. 3. 1 of 2 list or search tools have no way to ask for less (no limit, page or cursor parameter): `list_bun_pages`. Fix: Add a `limit` with a small default, and a cursor when there can be more: the agent pays for every row it didn't need. Keep tool names stable. After the change, check each fix against the tool list and one call per tool.
Alternatives
Bun alternatives, same test
The other framework servers on the board, tested the same day. A higher score means an agent has less to guess, not that the product behind it is better.
| # | Server | Biggest gap | Score |
|---|---|---|---|
| 1 | Search with no limit parameter | 95 | |
| 1 | Search with no limit parameter | 95 | |
| 3 | A response of about 57,200 tokens | 85 | |
| 4 | No instructions on connect | 70 |
Your server?
Fixed something? Run it again.
This page is the run of 1 December 2026. The live test takes a few seconds and shows the current result.
About 20 public requests, plus a few calls to the tools the server marks read-only. No other tool is called. No signup, nothing stored.
After the test
A test finds what is wrong with the interface.
It can’t see what agents wanted.
An agent that gives up, or takes the slow way round, still gets a 200 on every call, so your logs never show it. Backloop collects what agents were trying to do and couldn’t, groups it, and opens the pull request that fixes it.