Context Fabric is an MCP server that automatically captures project state on every git commit, detects when stored context has drifted from codebase reality, and delivers structured, token-budgeted briefings to AI agents — without requiring any developer action.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add context-fabric -- npx -y context-fabric~/.codex/config.toml
[mcp_servers.context-fabric]
command = "npx"
args = ["-y", "context-fabric"]
# codex mcp add context-fabric -- npx -y context-fabric~/.cursor/mcp.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}.vscode/mcp.json
{
"servers": {
"context-fabric": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}