claude-config-mcp
Manages Claude Code configuration and provides cross-session intelligent memory via the Luoshu system, enabling Claude to remember decisions and project context across conversations.
README
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:#333
Features
Configuration Management
Manage Claude Code's .claude/ directory through MCP tools:
- Memory β Read/write/search
.claude/memory/files across projects - Config β 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-mcp
This 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-mcp
From source
git clone https://github.com/znlnzi/claude-config-studio.git
cd claude-config-studio
make install
This 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.setup
This 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_memory |
Save a memory entry to .claude/memory/ |
load_memory |
Load memory files from a project |
search_memory |
Keyword search with automatic semantic supplement |
Configuration
| Tool | Description |
|---|---|
config_get_global |
Get global Claude Code configuration |
config_save_global |
Save global configuration field |
config_save_project |
Save project-level configuration field |
get_project_config |
Get project's .claude/ directory overview |
list_projects |
List all managed projects |
Templates
| Tool | Description |
|---|---|
template_list |
List available configuration templates |
template_install |
Install a template to project or global scope |
template_uninstall |
Uninstall a template |
template_installed |
List installed templates |
Extensions
| Tool | Description |
|---|---|
extension_list |
List extensions (agents/rules/skills/commands) |
extension_read |
Read an extension file |
extension_save |
Create or update an extension |
extension_delete |
Delete an extension |
Hooks
| Tool | Description |
|---|---|
hooks_list |
List configured hooks |
hooks_save |
Save hooks configuration |
Evolution
| Tool | Description |
|---|---|
evolve_status |
Get evolution system status |
evolve_analyze |
Analyze rules for issues |
evolve_apply |
Approve or reject a suggestion |
Luoshu Config
| Tool | Description |
|---|---|
luoshu_config_get |
Get current luoshu configuration (API keys masked) |
luoshu_config_set |
Set a configuration field with key pre-validation |
luoshu_config_validate |
Test LLM/Embedding connection |
luoshu_provider_list |
List all available LLM provider presets |
Luoshu Memory
| Tool | Description |
|---|---|
memory_extract |
Extract key points from conversation text |
memory_semantic_search |
Vector similarity search over memories |
luoshu_recall |
Intelligent recall with LLM synthesis |
Luoshu Status
| Tool | Description |
|---|---|
luoshu_status |
Get system stats (memory count, index size, cache) |
luoshu_reindex |
Rebuild vector index |
Import/Export
| Tool | Description |
|---|---|
export_config |
Export configuration as base64-encoded ZIP |
import_config |
Import configuration from base64-encoded ZIP |
MCP Resources
Read-only access to configuration files via MCP resource URIs:
| URI | Description |
|---|---|
claude://global/claude-md |
Global CLAUDE.md instructions |
claude://global/memory/{filename} |
Global memory files |
claude://project/{path}/memory/{filename} |
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 |
|---|---|
LUOSHU_LLM_API_KEY |
LLM service API key |
LUOSHU_LLM_MODEL |
LLM model name |
LUOSHU_EMBEDDING_API_KEY |
Embedding service API key |
LUOSHU_EMBEDDING_MODEL |
Embedding model name |
Supported LLM providers (OpenAI-compatible API):
| Provider | Preset Name |
|---|---|
| OpenAI | openai |
| DeepSeek | deepseek |
| Moonshot (Kimi) | moonshot |
| Zhipu (GLM) | zhipu |
| SiliconFlow | siliconflow |
| Volcengine Doubao | volcengine |
| Custom | 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:8080
HTTP 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 targets
The 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 clean
Contributing
See CONTRIBUTING.md for development setup, code style, and pull request guidelines.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.