claude-config-mcp
claude-config-mcp
Claude Code forgets everything between sessions. This MCP server fixes that.
π Documentation | π¦ npm | πΊοΈ Roadmap
claude-config-mcp manages your Claude Code .claude/ configuration through MCP tools, and adds luoshu (ζ΄δΉ¦) β a cross-session intelligent memory system that lets Claude remember your decisions, preferences, and project context across conversations.
Architecture
graph TB
CC[Claude Code CLI] -->|MCP Protocol| MCP[claude-config-mcp Server]
MCP --> CM[Configuration Management]
MCP --> LU[Luoshu Memory Engine]
MCP --> OV[File Semantic Search]
CM --> Memory[Memory Tools]
CM --> Config[Config Tools]
CM --> Templates[Template Engine]
CM --> Extensions[Extension Manager]
CM --> Hooks[Hooks Manager]
CM --> Evolution[Evolution Analyzer]
LU --> Store[Memory Store<br/>JSONL]
LU --> VecIdx[Vector Index<br/>Embeddings]
LU --> Recall[Intelligent Recall<br/>LLM Synthesis]
LU --> Provider[Multi-Provider<br/>OpenAI Compatible]
OV --> ClaudeIdx[Claude Index<br/>rules + memory files]
Provider --> OpenAI[OpenAI]
Provider --> DeepSeek[DeepSeek]
Provider --> More[Moonshot / Zhipu<br/>SiliconFlow / Volcengine]
style MCP fill:#f9f,stroke:#333,stroke-width:2px
style LU fill:#bbf,stroke:#333
style CM fill:#bfb,stroke:#333Features
Configuration Management
Manage Claude Code's .claude/ directory through MCP tools:
Memory β Read/write/search
.claude/memory/files across projectsConfig β Get/save global and project-level configuration (CLAUDE.md, settings.json, .mcp.json)
Templates β Install/uninstall configuration template packs (rules, agents, skills, commands)
Extensions β CRUD operations for agents, rules, skills, and commands
Hooks β Manage event hooks (PreToolUse, PostToolUse, SessionStart, Stop, etc.)
Evolution β Analyze rules for duplicates, gaps, and health issues
Luoshu (ζ΄δΉ¦) Intelligent Memory
Cross-session memory system powered by LLM and vector search:
Auto-extraction β Automatically extract key decisions, patterns, and context from conversations
Semantic search β Find related memories using vector similarity, not just keywords
Intelligent recall β Ask natural language questions like "what decisions were made about auth?" and get synthesized answers
Graceful degradation β Works without LLM config (keyword search only), unlocks full power with LLM
Installation
npm (recommended)
npm install -g claude-config-mcpThis installs the binary for your platform and registers /luoshu.setup and /luoshu.config skills.
Then register the MCP server:
claude mcp add claude-config -s user -- npx -y claude-config-mcpFrom source
git clone https://github.com/znlnzi/claude-config-studio.git
cd claude-config-studio
make installThis builds the binary, installs it to ~/.local/bin/, copies skills to ~/.claude/skills/, and registers with Claude Code.
Quick Start
After installation, restart Claude Code and type:
/luoshu.setupThis will:
Detect your project type and tech stack
Ask 3 quick questions about your preferences
Install matching configuration templates
Guide you through LLM setup for intelligent memory (optional)
MCP Tools
Memory Management
Tool | Description |
| Save a memory entry to |
| Load memory files from a project |
| Keyword search with automatic semantic supplement |
Configuration
Tool | Description |
| Get global Claude Code configuration |
| Save global configuration field |
| Save project-level configuration field |
| Get project's |
| List all managed projects |
Templates
Tool | Description |
| List available configuration templates |
| Install a template to project or global scope |
| Uninstall a template |
| List installed templates |
Extensions
Tool | Description |
| List extensions (agents/rules/skills/commands) |
| Read an extension file |
| Create or update an extension |
| Delete an extension |
Hooks
Tool | Description |
| List configured hooks |
| Save hooks configuration |
Evolution
Tool | Description |
| Get evolution system status |
| Analyze rules for issues |
| Approve or reject a suggestion |
Luoshu Config
Tool | Description |
| Get current luoshu configuration (API keys masked) |
| Set a configuration field with key pre-validation |
| Test LLM/Embedding connection |
| List all available LLM provider presets |
Luoshu Memory
Tool | Description |
| Extract key points from conversation text |
| Vector similarity search over memories |
| Intelligent recall with LLM synthesis |
Luoshu Status
Tool | Description |
| Get system stats (memory count, index size, cache) |
| Rebuild vector index |
Import/Export
Tool | Description |
| Export configuration as base64-encoded ZIP |
| Import configuration from base64-encoded ZIP |
MCP Resources
Read-only access to configuration files via MCP resource URIs:
URI | Description |
| Global CLAUDE.md instructions |
| Global memory files |
| Project memory files |
Luoshu Configuration
Luoshu uses a local config file at ~/.luoshu/config.json. Configure via /luoshu.config or environment variables:
Environment Variable | Description |
| LLM service API key |
| LLM model name |
| Embedding service API key |
| Embedding model name |
Supported LLM providers (OpenAI-compatible API):
Provider | Preset Name |
OpenAI |
|
DeepSeek |
|
Moonshot (Kimi) |
|
Zhipu (GLM) |
|
SiliconFlow |
|
Volcengine Doubao |
|
Custom |
|
Use luoshu_provider_list to see all presets, or set llm.provider to any preset name β endpoint and model defaults are auto-filled.
Transport Modes
# stdio (default, for Claude Code integration)
claude-config-mcp
# HTTP (for Docker, shared deployments)
claude-config-mcp --transport http --http-addr localhost:8080HTTP mode exposes a Streamable HTTP endpoint at /mcp.
Supported Platforms
Platform | Architecture |
macOS | ARM64 (Apple Silicon) |
macOS | x64 (Intel) |
Linux | x64 |
Linux | ARM64 |
Windows | x64 |
Project Structure
claude-config-studio/
βββ cmd/mcp-server/ # MCP Server entry point (Go)
βββ internal/
β βββ luoshu/ # Luoshu memory engine (vector index, recall, config)
β βββ templatedata/ # Built-in template definitions
β βββ evolution/ # Rules evolution engine
βββ npm/ # npm package distribution
βββ dist/skills/ # Global skills (/luoshu.setup, /luoshu.config)
βββ python/openviking-mcp/ # OpenViking semantic search MCP server (Python)
βββ scripts/ # Build and publish scripts
βββ Makefile # Build, test, install targetsThe main component is the Go MCP Server (cmd/mcp-server/), distributed via npm with pre-built binaries for all platforms.
python/openviking-mcp/ is a companion Python MCP server providing semantic search over Claude Code memory and rules files via OpenViking.
Development
# Build MCP server only
make mcp
# Run lint + build + tests
make test
# Run tests with verbose output
go test ./internal/... -v
# Cross-compile for all platforms
make npm-build
# Clean build artifacts
make cleanContributing
See CONTRIBUTING.md for development setup, code style, and pull request guidelines.
License
MIT