Claude Code
Connect Contxt to Claude Code via MCP. Claude automatically loads your project's decisions, patterns, and context at the start of every session.
Prerequisites
- Contxt CLI installed and authenticated (
contxt auth login) - A project initialized (
contxt init) - Claude Code installed
Add to Claude Code config
Add the Contxt MCP server to your Claude Code MCP configuration. Edit ~/.claude/claude_desktop_config.json (create it if it doesn't exist):
{
"mcpServers": {
"contxt": {
"command": "contxt",
"args": ["mcp"]
}
}
}Restart Claude Code after saving the config.
Verify the connection
In a Claude Code session, ask Claude to list available tools. You should see Contxt MCP tools including:
- contxt_suggest
- contxt_search
- contxt_get_entry
- contxt_list_entries
- contxt_add_entry
How it works
When you open a project in Claude Code, it can call contxt_suggest to automatically load relevant decisions and patterns. You can also prompt Claude directly:
"Load my project context before we start"
Claude will call the MCP tools to retrieve your decisions, patterns, and recent context, then use that to inform its responses throughout the session.