MCP serversFrameworksBun

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.

Frameworks4 toolsv1.0.0Streamable HTTP

Connect

How to add the Bun MCP server

The server speaks Streamable HTTP at the address below. Listing its tools needs no key.

Server URL
https://bun.com/docs/mcp
Claude Code
claude mcp add --transport http bun https://bun.com/docs/mcp
Cursor and other clients (mcp.json)
{
  "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.

ToolWhat the server says it doesParamsHint
search_bunSearch 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…3Read-only
read_bun_pageReturn 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…1Read-only
list_bun_pagesList 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…1Read-only
grep_bunRegex 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,…6Read-only

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 a limit with 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 (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.
  • 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.

ToolWe sentResultWhat the agent readsTime
search_bunA plain callAnsweredAbout 1,609 tokens0.2 s
search_bunLeft out queryRefusedsearch_bun: `query` is required.0.2 s
search_bunWrong type for queryRefusedsearch_bun: `query` is required.0.2 s
search_bunInvalid option for sectionAccepted, no errorTitle: 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: #…0.2 s
read_bun_pageA plain callError on our sample inputNo page at /test. Use search_bun or list_bun_pages to find it.0.2 s
read_bun_pageLeft out pathRefusedread_bun_page: `path` is required.0.3 s
read_bun_pageWrong type for pathRefusedread_bun_page: `path` is required.0.2 s
grep_bunA plain callAnsweredAbout 7,022 tokens0.3 s
grep_bunLeft out patternRefusedgrep_bun: `pattern` is required.0.2 s
grep_bunWrong type for patternRefusedgrep_bun: `pattern` is required.0.2 s
list_bun_pagesA plain callAnsweredAbout 57,228 tokens0.3 s
list_bun_pagesWrong type for pathAccepted, no error1577 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…0.3 s

Fix first

3 fixes, by points lost

  1. 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
  2. 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
  3. 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. Parameters
Paste into your coding agent, in the server's repository
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.

#ServerToolsBiggest gapScore
1Nuxtnuxt.com/mcp13Search with no limit parameter95
1Sveltemcp.svelte.dev/mcp4Search with no limit parameter95
3Bunbun.com/docs/mcp4A response of about 57,200 tokens85
4Astromcp.docs.astro.build/mcp1No instructions on connect70

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.