Tenets is a free, open-source MCP server that provides intelligent code context to AI coding assistants. It uses NLP analysis (BM25, TF-IDF, import graphs) to find and rank the most relevant code for any task — all running locally with no cloud APIs and no data leaving your machine.

Tenets is a free, open-source MCP server that provides intelligent code context to AI coding assistants. It uses NLP analysis (BM25, TF-IDF, import graphs) to find and rank the most relevant code for any task — all running locally with no cloud APIs and no data leaving your machine.
Tenets falls into the AI Code Context & MCP Server category. We tested it hands-on to evaluate its real-world performance, pricing value, and how it compares to alternatives in the space. Here's everything you need to know.
Multi-factor ranking using BM25, TF-IDF, AST analysis, import graphs, and Git history to find the most relevant code for any task
Native integration with Cursor, Claude Code, Windsurf, and VS Code via Model Context Protocol for seamless AI assistant enhancement
Define persistent rules that shape how AI understands your codebase — coding standards, architectural decisions, and team conventions
Cyclomatic complexity, cognitive complexity, Halstead metrics, maintainability indexing, and technical debt tracking
Everything runs on your machine. No cloud APIs, no data uploads, no telemetry. Your code stays completely private
SQLite-backed sessions that remember context across multiple AI interactions. Branch sessions to explore alternatives
Map and visualize import relationships, dependency trees, and module coupling to understand codebase architecture
Velocity tracking, hotspot analysis, contributor analytics, and development intelligence for engineering managers

Run 'pip install tenets[mcp]' for MCP server functionality. Use 'pip install tenets[all]' for ML and visualization features.
Add Tenets as an MCP server in Cursor, Claude Code, or VS Code. Point it at your project directory.
Create guiding principles that shape how AI interprets your codebase — coding standards, architecture patterns, and team conventions.
Your AI assistant now has intelligent, ranked code context for every task. Tenets automatically feeds the most relevant files and principles.
Tenets is completely free and open-source under the MIT license. No paid tiers exist or are planned.

MCP server focused on providing up-to-date library documentation for AI assistants
AI coding assistant with built-in codebase context and Git integration
Standardized protocol for sharing codebase context with AI tools
Enterprise code intelligence with AI assistant and codebase search

Tenets is exactly what the AI coding ecosystem needs: an intelligent, privacy-first context engine that makes every AI assistant smarter about your specific codebase. The multi-factor ranking (BM25, TF-IDF, import graphs, Git history) produces genuinely better context than simple file inclusion. The guiding principles feature is uniquely powerful — it lets you encode team knowledge and architectural decisions into persistent rules that shape every AI interaction. Being free and open-source removes any barrier to trying it. The only friction is the Python/pip requirement and initial setup. For any developer using AI coding assistants, Tenets is a must-install. Rating: 4.5/5
Visit the official Tenets website to get started
Yes, Tenets is completely free and open-source under the MIT license. There are no paid tiers, no usage limits, and no plans to add paid features. It will always be free.
No. Tenets runs 100% locally on your machine. No cloud APIs, no data uploads, no telemetry. Your codebase stays completely private.
Tenets integrates with Cursor, Claude Code (Claude Desktop), Windsurf, and VS Code via the Model Context Protocol (MCP). It also provides a CLI and Python library for custom integrations.
Tenets (guiding principles) are persistent rules you define that shape how AI interprets your codebase. They encode coding standards, architectural decisions, and team conventions so AI assistants follow your team's practices.
Tenets uses a multi-factor pipeline: BM25 and TF-IDF for text relevance, AST analysis for code structure, import graph analysis for dependency relationships, and Git history for change patterns. This produces higher-quality context than simple keyword matching.
Tenets runs as a background MCP server and is designed to be lightweight. Initial indexing may take a few minutes on large codebases, but subsequent queries are fast.
Yes, Tenets works with any programming language. It analyzes code structure, imports, and Git history regardless of the language. Python projects get additional benefits from the native AST analysis.
Install with pip: 'pip install tenets[mcp]' for MCP server functionality, or 'pip install tenets[all]' for all features including ML and visualization. Then configure it as an MCP server in your IDE.
Submit your favorite AI tools and we'll add them to our review queue.
Submit a Tool →
Subscribe to get weekly curated AI tool recommendations, exclusive deals, and early access to new tool reviews.
ai-coding
InsForge — an AI-native backend platform that lets coding agents autonomously build, manage, and deploy full‑stack apps.
ai-coding
Chattee converts plain-English prompts into production-ready full-stack web applications.
ai-coding
Vivgrid: Platform to build, observe, test, and deploy multi-agent AI systems with observability, safety, and scalable GPU inference.
ai-coding
FlowGent AI builds no-code conversational agents trained on your content to automate sales and support across messaging platforms.
Every Distributor Kept Flagging My AI Music — Until I Found This If you’ve been making music with AI tools like Suno or Udio, you already know the frustration. You spend hours crafting the perfect prompt, tweaking generations, picking the best output, and then DistroKid or TuneCore rejects it. No de
Complete review of the OpenClaw Business Starter Kit — a tested setup package for non-technical business owners. Includes 10-section course, 4 industry configs, 3 pre-built skills, Docker setup, and security hardening. From zero to running AI assistant in 60 minutes for $59.
Stop wasting 30-50% of your Claude Code tokens re-explaining context. The Claude Code Power User Kit includes 10+ CLAUDE.md templates, 7 skills, hooks, and a best practices guide. Set up in 15 minutes. Just $39.