# Sourcegraph MCP Server vs TokenEconomizer

> TokenEconomizer scores 62.6 (B) to Sourcegraph's 57.5 (C) for code repositories. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-tokeneconomizer
- Markdown: https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-tokeneconomizer.md (~2,300 tokens)
- Slim: https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-tokeneconomizer.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-tokeneconomizer.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-10-31

TokenEconomizer scores 62.6 (B) on agent readiness against Sourcegraph MCP Server's 57.5 (C), and leads in 3 of 7 scored categories. Sourcegraph MCP Server leads on schema & documentation, security & auth and maintenance & community. Both do code repositories.

- Sourcegraph MCP Server: grade C, 57.5/100, rank #717 of 1244. Markdown https://www.anchorterminal.com/tools/sourcegraph-mcp.md · JSON https://www.anchorterminal.com/api/v1/tools/sourcegraph-mcp.json
- TokenEconomizer: grade B, 62.6/100, rank #502 of 1244. Markdown https://www.anchorterminal.com/tools/tokeneconomizer.md · JSON https://www.anchorterminal.com/api/v1/tools/tokeneconomizer.json
- Best code, repository and documentation tools for AI agents: https://www.anchorterminal.com/best/code/index.md
- All 39 code comparisons: https://www.anchorterminal.com/compare/code/index.md

## Which one, for what

### Sourcegraph MCP Server (C)

Good for: A company that already runs Sourcegraph and wants agents to search and navigate many repositories with compiler-accurate definitions and references.

Ahead on:
- Schema & documentation, 71 against 66
- Security & auth, 76 against 71
- Maintenance & community, 83 against 43

Watch for: Enterprise plans only, from a $16,000 minimum annual contract through sales. A Cloud trial is by request and subject to eligibility

### TokenEconomizer (B)

Good for: Lowering the repeat cost of coding agents in repositories they work in often

Ahead on:
- Reliability, 46 against 25
- Payments & pricing, 60 against 15

Also in its favour:
- No key needed to call it
- Open source

Watch for: Version 0.1.0 with no changelog or release notes found; updating means a `git pull` of main


## Score by category

| Category | Weight | Sourcegraph MCP Server | TokenEconomizer | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% (20 this run) | 25 | 46 | TokenEconomizer +21 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% (16.2 this run) | 71 | 66 | Sourcegraph MCP Server +5 |
| Agent ergonomics | 13% (16.2 this run) | 72 | 76 | TokenEconomizer +4 |
| Security & auth | 14% (17.5 this run) | 76 | 71 | Sourcegraph MCP Server +5 |
| Payments & pricing | 10% (12.5 this run) | 15 | 60 | TokenEconomizer +45 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% (8.8 this run) | 83 | 43 | Sourcegraph MCP Server +40 |
| Transparency & trust | 7% (8.8 this run) | 78 | 76 | Sourcegraph MCP Server +2 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **57.5 · C** | **62.6 · B** | |

## Facts side by side

| Fact | Sourcegraph MCP Server | TokenEconomizer |
| --- | --- | --- |
| Kind | MCP server | Agent framework |
| Vendor | Sourcegraph, Inc. | Microsoft |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | Streamable HTTP |  |
| Auth | OAuth or key | None |
| Pricing | Paid | Free |
| x402 | no | no |
| Licence | Proprietary. The server is part of the Sourcegraph Enterprise product under the Sourcegraph Terms of Service | Apache-2.0 |
| Tools exposed | 16 | none |
| Read-only variant documented | yes | no |
| llms.txt | no | no |
| MCP registry | `io.github.sourcegraph/mcp` | not listed |
| Last release | 2026-09-17 | none |
| Terms last updated | 2026-07-22 | no date given |
| Privacy policy last updated | 2026-06-12 | no document linked |
| Customer content may train models | yes, with an opt-out | not found in the text |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | none | 976 stars |

## Verdicts

**Sourcegraph MCP Server.** Sixteen read-only tools search and navigate code across every repository an instance indexes, with OAuth limited to an `mcp` scope and repository permissions enforced on each call. Access needs an Enterprise contract, priced from $16,000 a year, and no request rate limits were found in the reviewed documentation.

**TokenEconomizer.** A standard-library Python plugin that keeps learned state on the machine, documents each hook and makes every action reversible. It is version 0.1.0 with no changelog, installs from a git clone of main, and the 18.4 to 30.9 per cent savings are the paper's SWE-Bench figures, measured with settings that differ from the plugin's defaults.

## Before you call either

### Sourcegraph MCP Server

1. Connect to https://<instance>/.api/mcp for the nine core tools. Use /.api/mcp/all for `go_to_definition`, `find_references`, `nls_search` and `compare_revisions`
2. Request only the `mcp` scope in OAuth. Any other scope on the MCP resource fails with `invalid_scope`
3. Without OAuth, send `Authorization: token <access token>` and create the token with the `mcp` scope and an expiry
4. Call `list_repos` first and name the repository in every `code_finder` task. It declines broad searches across repositories
5. Read large files with `startLine` and `endLine`. Files over 128KB return only the first 200 lines

### TokenEconomizer

1. Check the agent's version against the README's supported range before installing; versions outside it are untested or unsupported.
2. Keep micro-skills off, or set microskills=envfacts, in a repository whose command output you don't trust.
3. If a tool you need is missing, run the `toolprune` command to see what was left out and `toolprune restore` to bring it back.
4. Run the plugin's commands from a terminal with ~/.tokeneconomizer/bin/te; inside the agent each command costs a model turn.
5. Start the agent with TE_DISABLE=1 to run one session without the plugin.

## Questions

### Which is better for AI agents, Sourcegraph MCP Server or TokenEconomizer?

TokenEconomizer scores 62.6 (B) on agent readiness against Sourcegraph MCP Server's 57.5 (C), and leads in 3 of 7 scored categories. Sourcegraph MCP Server leads on schema & documentation, security & auth and maintenance & community.

### Can an agent call Sourcegraph MCP Server and TokenEconomizer without installing anything?

No hosted endpoint is listed for Sourcegraph MCP Server. No hosted endpoint is listed for TokenEconomizer.

### Are Sourcegraph MCP Server and TokenEconomizer open source?

No open-source release is listed for Sourcegraph MCP Server. TokenEconomizer is open source (Apache-2.0).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-tokeneconomizer.json, and with the fewest tokens: https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-tokeneconomizer.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "sourcegraph-mcp", "b": "tokeneconomizer"}`. From a terminal: `anchor compare sourcegraph-mcp tokeneconomizer`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/sourcegraph-mcp.json and https://www.anchorterminal.com/api/v1/tools/tokeneconomizer.json

## Other comparisons with Sourcegraph MCP Server or TokenEconomizer

- [Azure DevOps MCP Server vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/azure-devops-mcp-vs-sourcegraph-mcp.md)
- [Azure DevOps MCP Server vs TokenEconomizer](https://www.anchorterminal.com/compare/azure-devops-mcp-vs-tokeneconomizer.md)
- [Entire vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/entire-vs-sourcegraph-mcp.md)
- [Entire vs TokenEconomizer](https://www.anchorterminal.com/compare/entire-vs-tokeneconomizer.md)
- [GitHub MCP Server vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/github-mcp-server-vs-sourcegraph-mcp.md)
- [GitHub MCP Server vs TokenEconomizer](https://www.anchorterminal.com/compare/github-mcp-server-vs-tokeneconomizer.md)
- [graft vs TokenEconomizer](https://www.anchorterminal.com/compare/graft-vs-tokeneconomizer.md)
- [Graphify vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/graphify-vs-sourcegraph-mcp.md)
- [Graphify vs TokenEconomizer](https://www.anchorterminal.com/compare/graphify-vs-tokeneconomizer.md)
- [Git (MCP reference server) vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/git-reference-server-vs-sourcegraph-mcp.md)
- [graft vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.md)
- [Sourcegraph MCP Server vs Superpowers](https://www.anchorterminal.com/compare/sourcegraph-mcp-vs-superpowers.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
