Reads .editorconfig files to automatically extract formatting standards like indentation and line endings for AI assistant configuration
Analyzes ESLint configuration files to extract linting rules and JavaScript/TypeScript coding standards
Generates GitHub-specific instruction files for AI assistants and manages project-based configuration standards
Generates and updates Copilot instruction files (.github/copilot-instructions.md) based on learned patterns and project configurations
Detects Jest testing framework for JavaScript projects in configuration analysis
Analyzes package.json files to detect JavaScript/TypeScript project dependencies and build configurations
Detects Poetry configuration in Python projects for package management preferences
Parses Prettier configuration files to extract formatting rules, quotes preferences, and code style standards
Identifies pytest as the testing framework for Python projects in auto-generated standards
Reads pyproject.toml files to extract Python project configuration, dependencies, and tooling preferences
Parses Cargo.toml files to extract Rust project configuration and dependencies for AI assistant guidance
Uses SQLite database with FTS5 for storing learned patterns, preferences, and providing full-text search capabilities across knowledge base
Identifies Vitest as the testing framework for modern JavaScript/TypeScript projects
Detects Yarn as the package manager preference for JavaScript/TypeScript projects
MCP Standards - Self-Learning AI Standards System
Stop repeating yourself. MCP Standards learns from your corrections automatically and updates your AI configuration.
The Problem
You keep telling your AI assistant the same things:
"Use
uv
notpip
""Use
uv
notpip
""Use
uv
notpip
"
What if it learned after the 3rd time?
The Solution
MCP Standards learns from your corrections automatically:
You correct Claude 3 times: "use
uv
notpip
"MCP Standards detects the pattern
Preference promoted (80% confidence)
CLAUDE.md updated automatically
Claude never makes that mistake again
Before MCP Standards
After MCP Standards
Features
⨠Self-Learning (THE Killer Feature)
Automatic Pattern Detection:
Learns from corrections (3+ occurrences)
Detects workflow patterns
Promotes to preferences automatically
Updates CLAUDE.md without manual work
5 Types of Learning:
Explicit corrections: "use X not Y"
Implicit rejections: User edits within 2 minutes
Rule violations: Compare vs config files
Workflow patterns: Always run tests after code
Tool preferences: Prefer certain tools for tasks
Confidence-Based Promotion:
3 occurrences = 30% confidence (detected)
5 occurrences = 70% confidence (high)
10 occurrences = 90% confidence (very high)
95%+ = auto-apply to CLAUDE.md
šÆ Automatic Standards Extraction
Reads your existing config files:
.editorconfig
ā Indentation, line endings.prettierrc
ā Formatting, quotes.eslintrc
ā Linting rulespyproject.toml
ā Python configpackage.json
ā JavaScript dependenciesCargo.toml
ā Rust config
Auto-detects:
Project type (Python, JavaScript, Rust, Go, etc.)
Package manager (uv, npm, yarn, cargo, etc.)
Test framework (pytest, jest, vitest, etc.)
Build commands
Generates instruction files for:
Claude Desktop/Code (
CLAUDE.md
)GitHub Copilot (
.github/copilot-instructions.md
)Cursor (
.cursor/rules/standards.mdc
)
š Production-Grade Security
Built with defense-in-depth:
ā Path whitelist - Only allowed directories
ā Input sanitization - No log injection
ā Rate limiting - 100 patterns/min max
ā Audit logging - Complete modification trail
ā 100% local - No cloud, no tracking
š§ Persistent Memory
Local SQLite database with FTS5
Full-text search (<50ms on 1M+ episodes)
Export to markdown
Project-specific vs global preferences
Quick Start
Install
Option B: From PyPI (Recommended)
š 60-Second Quickstart
Once Claude Desktop restarts, try this:
What just happened?
ā Your preference is stored in local SQLite database
ā Searchable in all future conversations
ā AI standards file generated from your project config
Next: Start correcting Claude when it makes mistakes. After 3 similar corrections, run:
You'll see MCP Standards has learned the pattern automatically!
Optional: Add Cost Optimization (99.5% Savings)
Want to save on AI costs? Add agentic-flow to route simple operations to cheaper models:
What agentic-flow does:
Routes simple operations (memory, search) ā Gemini Flash ($0.075/1M tokens)
Keeps complex operations (code gen) ā Claude Sonnet ($15/1M tokens)
Shows which model was used for each operation
Displays cost savings in real-time
Saves ~$389/month on typical usage
100% optional - MCP Standards works perfectly without it
š Quick Start Guide
MCP Standards has two complementary systems for building your AI assistant's knowledge:
System 1: Episodes (Manual Knowledge - Immediate)
Store facts, preferences, and instructions right now:
When to use Episodes:
ā Store a preference immediately
ā Document project-specific facts
ā Save code examples and snippets
ā Build a searchable knowledge base
System 2: Learned Preferences (Auto Pattern Detection - Over Time)
The system automatically learns from repeated corrections:
Learned preferences build automatically when:
š You correct the same thing 3+ times
š Patterns emerge across different projects
š Confidence scores reach thresholds:
0.3 = Emerging pattern (2-3 corrections)
0.7 = Strong preference (5-7 corrections)
0.9 = Very confident (10+ corrections)
šÆ Practical Example: Teaching Claude to Use uv
Scenario: You want Claude to always use uv
instead of pip
Option A: Store Immediately (Recommended for new preferences)
ā Available immediately in search ā Works in current session ā Manual but fast
Option B: Let System Learn (Automatic over time)
Day 1: Correct Claude: "Use uv instead of pip" ā Pattern #1 detected
Day 3: Correct again on different project ā Pattern #2 detected
Day 7: Correct third time ā Learned preference created (confidence: 0.3)
Day 14: Fourth correction ā Confidence increases to 0.7
Run
get_learned_preferences()
ā See the patternRun
suggest_claudemd_update()
ā Get suggestion to add to CLAUDE.mdRun
update_claudemd()
ā Automatically updates your config file
ā Builds confidence scores ā Suggests CLAUDE.md updates ā Automatic but slower
š Best Practice: Use Both!
Store critical preferences immediately with
add_episode()
Let the system learn patterns over time from corrections
Review learned preferences monthly with
get_learned_preferences()
Update CLAUDE.md when confidence scores are high (0.7+)
š§ Generate Standards from Existing Project
How It Works
Pattern Learning Pipeline
Example Flow:
User says: "Actually, use
uv
notpip
"Pattern extractor detects: "use uv instead of pip"
Frequency tracker increments: occurrence #1
Repeat 2 more times ā occurrence #3
Promotion engine creates preference (confidence 0.3)
User approves ā CLAUDE.md updated
Future sessions ā Claude sees preference in context
Database Schema
What Makes MCP Standards Different?
Feature | MCP Standards | Tabnine | Copilot | Other MCPs |
Learns from corrections | ā Auto | ā No | ā No | ā No |
Updates CLAUDE.md | ā Auto | N/A | N/A | ā Manual |
Pattern detection | ā 5 types | ā No | ā No | ā No |
100% local | ā Yes | ā Cloud | ā Cloud | ā Varies |
Open source | ā MIT | ā No | ā No | ā Varies |
Security features | ā 4 layers | ā ļø Basic | ā ļø Basic | ā ļø Varies |
Unique Value Proposition: MCP Standards is the ONLY system that learns from your corrections and automatically updates your AI configuration.
Documentation
Guides
Quick Start - 5-minute setup
Self-Learning Guide - How pattern learning works
Security Guide - Security features explained
Integration Guide - Setup for all AI assistants
Config Standards - Universal config reference
Technical
Architecture - System design
Self-Learning PRD - Product requirements document
MCP Tools
Core Memory
add_episode(name, content)
- Save knowledgesearch_episodes(query, limit)
- Full-text searchlist_recent(limit)
- Recent episodes
Pattern Learning
get_learned_preferences(category, min_confidence)
- View learned patternssuggest_claudemd_update(project_path)
- Get suggestionsupdate_claudemd(file_path, min_confidence)
- Apply updates
Standards Generation
generate_ai_standards(project_path, formats)
- Auto-generate from config filesexport_to_markdown(export_path)
- Export knowledge base
Requirements
Python 3.10 or higher
Claude Desktop or Claude Code
MCP 1.0+
Supported Config Files
Formatting:
.editorconfig
.prettierrc
/.prettierrc.json
.eslintrc
/.eslintrc.json
Languages:
pyproject.toml
(Python - Black, Ruff, Poetry, uv)package.json
(JavaScript/TypeScript)Cargo.toml
(Rust)go.mod
(Go)
More coming: Ruby, PHP, Java, C#
Cost Optimization (Optional)
By default, MCP Standards uses Claude Sonnet for all operations. You can optionally configure it to use 99.5% cheaper models for simple operations:
Setup Gemini Flash (Recommended)
Get free API key: https://aistudio.google.com/app/apikey
Add to your environment:
export GEMINI_API_KEY="your_key_here" # Or add to ~/.bashrc or ~/.zshrcAutomatic routing:
Simple operations (memory CRUD, searches) ā Gemini 1.5 Flash ($0.075/1M tokens)
Complex operations (code generation, pattern analysis) ā Claude Sonnet ($15/1M tokens)
99.5% cost savings on routine operations
Powered by Agentic Flow
MCP Standards uses agentic-flow for intelligent model routing and cost optimization.
Features:
Automatic model selection based on task complexity
Support for 20+ AI providers (Anthropic, Google, OpenRouter, Groq, etc.)
Fallback chains for reliability
Token usage tracking
Learn more: agentic-flow documentation
Roadmap
ā v0.1.0 (October 2025 - Current)
Self-learning pattern detection
CLAUDE.md auto-generation
Config file parsing
Security enhancements (whitelist, sanitization, rate limiting, audit logs)
100% local with SQLite + FTS5
š v0.2.0 (Q1 2026)
Implicit rejection detection (user edits within 2 min)
Rule violation detection (compare vs config files)
Workflow pattern learning (test after code changes)
Cross-project promotion (project ā global)
MCP notifications for pattern promotions
š® v0.3.0 (Q2 2026)
Team sync (share learned preferences)
Analytics dashboard (trends, common corrections)
Cloud backup (optional)
Multi-project management
Priority support
Contributing
We welcome contributions! See CONTRIBUTING.md for:
How to report bugs
How to request features
Development setup
Code standards
License
MIT License - see LICENSE for details
Support
GitHub Issues: Report bugs or request features
Discussions: Ask questions or share ideas
Email: matt.strautmann@gmail.com
Built With
Python 3.10+
SQLite with FTS5 (full-text search)
MCP (Model Context Protocol)
uv (fast Python package manager)
Acknowledgments
Anthropic for Claude and MCP
agentic-flow for intelligent model routing and cost optimization
The open source community
Everyone who tested early versions
Made with ā¤ļø by
Stop repeating yourself. Start using MCP Standards.
ā Star us on GitHub if this helps you!
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A self-learning AI standards system that automatically detects patterns from user corrections and updates AI configuration files. Learns from repeated corrections (like 'use uv not pip') and automatically generates CLAUDE.md and other AI assistant configuration files.