
100% local MCP server for intelligent code context: BM25, TF-IDF, import graphs rank files for AI assistants.
By Tanmay Verma, Founder · Last verified 03 Jul 2026
In short
Tenets — 100% local MCP server for intelligent code context: BM25, TF-IDF, import graphs rank files for AI assistants. Best for Developers using AI coding assistants who need better context, Privacy-conscious teams that require local-only code analysis, Teams wanting to define and enforce coding principles (tenets) in AI workflows. Free to use.
See what real users actually say. We scan live discussions, reviews and complaints across the web and hand you an honest verdict — in under a minute.
3 free scans · no card needed · downloadable report
Tenets elegantly solves the 'garbage in, garbage out' problem for AI coding assistants by intelligently curating local code context. Its privacy-first, local-only approach is a standout in the MCP space, though the lack of a hosted tier means no collaboration features. Best for developers who value control and context quality over convenience.
Compare with: Tenets vs Draftbit, Tenets vs AppGyver, Tenets vs Cognition AI
Last verified: July 2026
Across the latest 3 updates: 3 changelog entries.
Step-by-step guide for integrating Tenets with Cursor and Claude.
Explains what MCP is, why it matters, and how Tenets fits into the ecosystem.
Blog post argues AI coding quality depends on context quality, not model size.
We ran a structured research pass across product reviews, community discussions, and post-purchase forum threads to surface the patterns vendors won't publish themselves. Below: the recurring strengths, the hidden costs people mention most, and the cohort that consistently regrets adopting this tool.
43 mentions across 2 sources (Hacker News, Lemmy).
How likely is Tenets to still be operational in 12 months? Based on 4 signals — momentum (how recently it shipped), wrapper dependency, revenue model, and web presence.
Last calculated: July 2026
How we score →Tenets is an open-source, privacy-first tool that solves the context problem for AI-assisted coding. It provides a Model Context Protocol (MCP) server, Python library, and CLI that automatically finds, ranks, and aggregates the most relevant code files for any development task. Instead of manually selecting files or feeding entire directories, Tenets uses multi-factor NLP ranking (BM25, TF-IDF, keyword extraction, import graphs, Git history) to deliver high-signal context to AI coding assistants while keeping your code entirely local. Targeted at developers and teams using AI coding assistants like Cursor, Claude Desktop, or Windsurf, Tenets integrates natively via MCP. You install it with a single pip command, configure your IDE, and Tenets exposes tools that the assistant calls on demand. It runs 100% on your machine—no cloud, no API keys needed for core features, making it ideal for privacy-conscious users and organizations. What sets Tenets apart from other MCP servers is its intelligent ranking layer. While others offer raw file access, Tenets analyzes code structure, import relationships, semantic meaning, and even Git signals to rank files by relevance. It includes optional ML embeddings (with tenets[ml]), token-budget-aware packing, and summarizers—both rules-based and ML—so the AI sees only the most important code within context limits. Beyond context building, Tenets offers project analysis tools: examining code complexity, hotspots, ownership, and team velocity. It also supports 'tenets'—guiding principles you can define and instill into sessions (e.g., 'Always validate user input') that persist across interactions. The CLI further enables dependency visualization, ranking queries, and session management.
Tenets fills a genuine gap in the AI coding workflow. Most MCP servers simply give the AI raw file access—the AI still has to figure out what to read. Tenets does the heavy lifting of ranking and summarizing code so the assistant gets only what's relevant. That pre-filtering matters when context windows are tight and prompt quality depends on signal. We'd reach for this when working on a large codebase where manually curating context is tedious. The 'tenets' feature—persistent guiding principles—is a nice touch for enforcing coding standards across AI sessions. The optional ML embeddings add semantic understanding without sending code to the cloud. Where Tenets falls short: no hosted/cloud tier means no team collaboration features, no dashboards, and no way to share analysis results without CLI access. It's also not for non-developers—everything is command-line or IDE-config. The setup, while simple, still requires editing JSON config files, which might trip up less technical users. Compared to alternatives like Sourcegraph Cody or GitHub Copilot, Tenets is more flexible but less polished. Cody offers a GUI and cloud sync; Tenets gives you full control and privacy. The MIT license means you can fork and modify it freely, but support is community-driven. If your team prioritizes data privacy and wants to avoid cloud AI dependencies, Tenets is a strong choice. If you prefer a managed experience with collaboration features, look elsewhere.
Free, no signup — tell us your goal and get tools matched to your budget & existing stack.
Project the real annual outlay, including the implied monthly cost when only an annual tier is published.
Vendor list price only. Add-on usage, seat overages, and contract minimums are surfaced under Hidden costs & gotchas.
Helpful link from tenets.dev
Helpful link from tenets.dev
Helpful link from tenets.dev
Helpful link from tenets.dev
Helpful link from tenets.dev
Full product docs from tenets.dev
Common stack mates teams adopt alongside Tenets, with the specific reason each pairing earns its keep.
Used Tenets? Help shape our editorial sentiment research.