AsterMind MCP Server
On-device reranking that cuts RAG context tokens ~67% while keeping a relevant passage.
AsterMind MCP scores 65 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 10 tools. Filed under AI and memory. GitHub shows 1 stars. Package registries report about 64 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
65 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
89/100 for listing completeness. Lost points: 3 of 10 tools barely described, short summary.
How quality is graded
Where the 65 comes from
22 + 15 + 4 + 10 + 4 + 10 = 65. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "astermindai-astermind-mcp": { "command": "npx", "args": [ "-y", "@astermind/astermind-mcp@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools10Tool docs quality grade D
All capabilitiesclassify_texttoolLabel text into supplied categories
compare_textstoolSimilarity between two texts
compress_contexttoolRerank + trim a context block to a token budget
count_tokenstoolExact BPE token count for any text
detect_languagetoolIdentify text language
estimate_savingstoolBefore/after token delta for a filtering choice
filter_contexttoolKeep the top-K / above-threshold passages
Character-level vector for text
rerank_documentstoolScore & order candidates against a query
semantic_searchtoolRank a corpus against a query
About
AsterMind MCP
Cut the tokens you send to an LLM — on your own machine, before the call goes out.
AsterMind MCP is a Model Context Protocol server that ranks and filters your retrieved context locally, so you send the model the few passages that actually answer the question instead of everything your retriever returned. It runs on the AsterMind Community Edition ELM engine. No network calls, no API keys, no data leaves the machine.
What it actually does (measured, not promised)
On a 6-scenario RAG benchmark (support KB, API docs, HR policy, e-commerce FAQ, DevOps runbook, fintech help), filtering 10 retrieved candidates down to the top 3 by rerank score:
| Metric | Result |
|---|---|
| Average context-token saving | 66.9% (66.8% overall by tokens) |
| Answer-present hit rate | 100% (a passage that answers the query survived filtering in every scenario) |
| Total tokens | 926 → 307 |
| Strict "all relevant passages kept" recall | 55.6% |
| Precision | 50% |
Tokens counted with gpt-tokenizer
(o200k/cl100k BPE, OpenAI-compatible). Reproduce it yourself: npm run benchmark.
Full methodology and per-scenario results are in BENCHMARK.md.
The honest tradeoff
Savings and recall move in opposite directions — keep fewer chunks, save more tokens, risk dropping a relevant one. You choose the point on the curve:
| Keep top-K of 10 | Token saving | Answer-present hit rate | All-relevant recall |
|---|---|---|---|
| 1 | ~87.9% | 100% | 38.9% |
| 3 (default) | 66.8% | 100% | ~55–75% |
| 6 | ~46% | 100% | 75% |
Rank-1 surfaced a relevant passage in 100% of scenarios at every K we tested. That is the strong, defensible result. For single-hop questions (FAQ, support, one-fact lookups) keep top 1–3 and cut ~67–88% of context. For multi-hop questions that need several passages, keep top 5–6 — don't over-filter, or you'll drop a needed passage.
Install
npx @astermind/astermind-mcp
Or add it to your MCP client config (Claude Desktop, Cursor, VS Code, Cline):
{
"mcpServers": {
"astermind": {
"command": "npx",
"args": ["-y", "@astermind/astermind-mcp"]
}
}
}
Runs on Node 18+. No GPU, no build step, no configuration.
Tools (10)
| Tool | What it does | Strength |
|---|---|---|
rerank_documents | Score & order candidates against a query | Strong — the core value |
filter_context | Keep the top-K / above-threshold passages | Strong |
compress_context | Rerank + trim a context block to a token budget | Strong |
count_tokens | Exact BPE token count for any text | Exact |
estimate_savings | Before/after token delta for a filtering choice | Exact |
semantic_search | Rank a corpus against a query | Good (lexical) |
detect_language | Identify text language | Good, confidence-flagged |
classify_text | Label text into supplied categories | Weak — low-confidence flagged |
generate_embeddings | Character-level vector for text | Near-duplicate use only |
compare_texts | Similarity between two texts | Near-duplicate use only |
Every tool returns a confidence signal. Where the engine is weak, the tool says so rather than guessing silently.
Known limitations (stated on purpose)
- The reranker is lexical (TF-IDF). It matches on shared terms, so pure synonym gaps can be missed — a query for "payment methods" won't strongly rank a passage that only says "Visa/Mastercard." It excels when the query and the answer share vocabulary, which is the common RAG case.
- Classification is weak out of the box and only fair after training — use it as a low-confidence hint, not a decision-maker. It flags low confidence.
- Embeddings are character-level, useful for near-duplicate detection, not deep semantic similarity.
The token savings above are real only because a relevant passage is preserved. Cutting tokens by dropping the answer is not a saving, and this benchmark measures both.
When this saves you money
The server does not shrink an LLM's vocabulary or compress prompts magically. It saves tokens one specific way: you retrieve broadly, then send the model only the passages that matter. If your RAG pipeline currently stuffs 8–12 retrieved chunks into every prompt, reranking locally and sending 3 is a direct, repeatable cut to your per-call input tokens — and it runs on your machine for free.
Develop & verify
npm install
npm test # engine + MCP client round-trip tests
npm run benchmark # regenerates benchmark/results.json
npm run benchmark:sweep # top-K policy sweep
License
MIT © AsterMind AI. Built on @astermind/astermind-community.
Frequently asked questions
What is AsterMind MCP Server?
On-device reranking that cuts RAG context tokens ~67% while keeping a relevant passage.
How do I install AsterMind MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. AsterMind MCP Server runs locally from the npm package @astermind/astermind-mcp with the command npx -y @astermind/astermind-mcp@0.1.0.
Is AsterMind MCP Server free and open source?
Yes. AsterMind MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does AsterMind MCP Server support remote (HTTP) connections?
No remote endpoint is listed for AsterMind MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does AsterMind MCP Server provide?
AsterMind MCP Server provides 10 tools, including classify_text, compare_texts, compress_context, and count_tokens. See the full tool list for descriptions and parameters.
How is AsterMind MCP Server's trust score calculated?
AsterMind MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.