MongoDB
MongoDB ranks 3 of 21 ranked MCP servers, with a row score of 98.3% (92–99%). Success rate by agent over 20 tasks: Claude Code 100% (92–100%), Codex 95% (84–98%), OpenCode 100% (92–100%). Mean ignore rate 1% (0–8%): the share of should-call trials with no call to the server before the answer. 20 validated tasks (5 held out), 3 trials per task and agent; run 2026-10-29 to 2026-10-30.
Its row
The same row as on the leaderboard. Click a cell to see its outcomes and diagnostics.
| Rank | Server | Domain | Claude Codesuccess rate | Codexsuccess rate | OpenCodesuccess rate | Row scoremean of 3 · 95% interval | Ignore ratemean of 3 |
|---|---|---|---|---|---|---|---|
| 3 | MongoDB v3.2.2 | database | 98.3%(92–99%) | 1%0–8% |
Results by task shape and harness
Task shape × harness
Success rate for each task shape on each harness. Stronger violet is higher, and a dash means the shape doesn't apply or the harness can't connect.
| Task shape | Claude Code | Codex | OpenCode |
|---|---|---|---|
| Look up by identifier | 100% (68–100%) | 92% (57–98%) | 100% (68–100%) |
| Search or filter | 100% (68–100%) | 92% (57–98%) | 100% (68–100%) |
| Two-step chain | 100% (60–100%) | 100% (60–100%) | 100% (60–100%) |
| Write, then verify | 100% (60–100%) | 100% (60–100%) | 100% (60–100%) |
| Built-in collision | 100% (48–100%) | 100% (48–100%) | 100% (49–100%) |
| Error recovery | 100% (49–100%) | 83% (35–96%) | 100% (48–100%) |
| Should not call | 100% (49–100%) | 100% (49–100%) | 100% (49–100%) |
Why tasks fail
How each harness's scored trials ended. The strongest violet is grounded correct.
- Grounded correct
- Ignored the result
- Answered from memory
- Used a built-in
- Wrong tool or bad args
- False call
- No answer
- Excluded
| Harness | Grounded correct | Ignored the result | Answered from memory | Used a built-in | Wrong tool or bad args | False call | No answer | Excluded (re-run) |
|---|---|---|---|---|---|---|---|---|
| Claude Code | 60 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Codex | 57 | 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| OpenCode | 60 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Harness differences on this server
Difference in success between two harnesses on the same tasks, with 95% intervals. Two harnesses can be told apart only when the interval excludes 0 and at least 3 tasks differ in the same direction.
| Comparison | Difference | 95% interval | Tasks |
|---|---|---|---|
| Claude Code − Codex | +5.0 pts | +1.2 to +11.4 pts | 20 |
| Claude Code − OpenCode | ±0.0 pts | −10.1 to +10.3 pts | 20 |
| Codex − OpenCode | −5.0 pts | −10.9 to −1.2 pts | 20 |
How we ran it
MongoDB's official server, connected for each trial to a seeded database of its own on a shared MongoDB instance. It ran read-write because the write tasks need insert-many and update-many, and the trial user owns only its own database. The Atlas tools were off because there are no cloud credentials, and the MongoDB Assistant tools, which query knowledge.mongodb.com, were off so that every answer comes from the trial database. Agents saw 25 tools, and mongodb-logs answers 'not authorized' because reading logs needs cluster privileges.
MDB_MCP_TELEMETRY=disabled \ MDB_MCP_DISABLED_TOOLS=atlas,atlas-local,search-knowledge,list-knowledge-sources \ MDB_MCP_LOGGERS=stderr \ npx -y mongodb-mcp-server@3.2.2 <uri> \ --exportsPath <exports>
<…> parts are filled in per trial.
npx -y mongodb-mcp-server@3.2.2 --version
Tasks
Public vs held-out tasks
−2.2 pts95% interval −7.7 to +17.9 pts
Success on public tasks minus success on held-out tasks, averaged over the harnesses. 5 of the 20 validated tasks are held out, so nobody can tune tool descriptions to their prompts. Their 45 trials are scored, but their prompts and transcripts are never published. The interval crosses 0, so there is no detectable gap.
Task validation
Each task version is validated once, with three checks. The first two run 2 trials per harness, and a third only when those two disagree. Told which tool to use, it must pass 2 trials on at least one harness, so it is solvable. Without the server, it must fail 2 trials on every harness, so it can't be answered from memory. When we swap a value in the server's data, the answer must change with it, so we know the answer came from the server. Tasks that fail a check are rewritten or removed and never scored.
| Task | Shape | Status | Told which tool (passed) | No server (correct) | Reason |
|---|---|---|---|---|---|
| mongodb. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Built-in collision | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Built-in collision | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Built-in collision | Validated | Claude Code 2/2, Codex 0/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Built-in collision | Validated | Claude Code 2/2, Codex 1/3, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Error recovery | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Error recovery | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Look up by identifier | Validated | Claude Code 2/2, Codex 0/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Look up by identifier | Validated | Claude Code 2/2, Codex 1/3, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Search or filter | Validated | Claude Code 2/2, Codex 2/3, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Should not call | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Passed all three checks | |
| mongodb. | Should not call | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Passed all three checks | |
| mongodb. | Write, then verify | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Write, then verify | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Write, then verify | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Write, then verify | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Write, then verify | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| mongodb. | Write, then verify | Validated | Claude Code 2/2, Codex 2/3, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| 10 held-out tasks | 10 validated, 0 dropped. Held-out task names and prompts stay private. | ||||
Run this suite in your CI
This server's tasks are M3 tests in tests/servers/mongodb/. The command runs them with the same harness versions and models as this server's cells, on m3 0.3.2, and the workflow runs it on every pull request. Held-out tasks are not included.
m3 test --runtime managed \ --harness claude_code@2.1.312=claude-haiku-5-5 \ --harness codex@0.165.0=gpt-6-luna \ --harness opencode@1.19.5=anthropic/claude-haiku-5-5 \ --trials 3 \ -- tests/servers/mongodb
[](https://m3.sineframe.com/leaderboard/server/mongodb/)
name: MCP agent tests
on: [pull_request]
jobs:
m3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- name: Run the MongoDB MCP Agent Usability suite
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
uvx --from sf-m3-cli==0.3.2 m3 test --runtime managed \
--harness claude_code@2.1.312=claude-haiku-5-5 \
--harness codex@0.165.0=gpt-6-luna \
--harness opencode@1.19.5=anthropic/claude-haiku-5-5 \
--trials 3 \
-- tests/servers/mongodb