Model Context Protocol (MCP) Integration
CentR provides a production-grade stdio Model Context Protocol (MCP) server via @centr-ai/mcp, allowing Claude Code, Cursor, and OpenAI Codex to query project intelligence seamlessly.
Claude Code Configuration
Run the following command to register CentR with Claude Code:
bash
claude mcp add centr -- npx @centr-ai/mcpCursor Configuration (.cursor/mcp.json)
json
{
"mcpServers": {
"centr": {
"command": "npx",
"args": ["-y", "@centr-ai/mcp"]
}
}
}Exposed MCP Tools
get_context: Token-budgeted project intelligence for a task.search_code: Ranked full-text BM25 search across repository symbols.lookup_symbol: Deep definition, signature, and reference retrieval.get_memory&record_memory: Project-isolated memory operations.get_learning: Cross-project validated engineering lessons.