CodeContextKit
Claude Code MCP Server v1.2 Ready · Anthropic Compatible · Madrid, Spain

Deterministic AST Context for
Claude Code & Autonomous PR Refactoring

Index full-repository syntax trees, compute call graphs, and eliminate hallucinations with zero token bloat. Built natively for the Anthropic Claude API (Sonnet and Haiku) and the Model Context Protocol (MCP).

$ claude mcp add codecontextkit -- uvx codecontextkit-mcp
claude-code --mcp=codecontextkit node: v22.8
// 1. Indexing repository with Tree-sitter incremental parser
$ codecontextkit index --repo . --target=ast
✔ Discovered 482 source files across TypeScript, Python, Rust
✔ Parsed 24,190 AST syntax nodes in 142ms
✔ Built cross-file symbol resolution graph

// 2. Claude Code agent requesting symbol impact
Claude: Refactoring auth middleware in src/auth/session.ts...
> Tool Call: get_pr_impact_blast_radius({ symbol: "verifySessionToken" })
< Result: 7 downstream consumers detected in 3 microservices
< AST Slice: Pruned context from 120k tokens down to 8.4k tokens (-93%)

Claude: Safe refactoring patch applied without breaking API contracts.
AST DEPENDENCY GRAPH ENGINE STATUS: DETERMINISTIC
Token Pruning Efficiency -92.8%
AST Resolution Latency 12ms
AuthService.ts ──► TokenValidator
├──► SessionCache (Redis)
└──► auth.test.ts (PASS)
Syntactic Architecture

Eliminating Context Hallucinations in Autonomous Agents

Traditional LLM architectures fail when refactoring large codebases because vector embeddings lose compiler hierarchy and type contracts. CodeContextKit replaces naive RAG with deterministic static AST analysis.

Incremental Tree-Sitter Parser

Millisecond-grade indexing with native grammars for TypeScript, JavaScript, Python, Rust, Go, Java, and C++. Only reindexes modified syntax nodes per Git commit.

Cross-Module Dependency Graph

Deterministic bidirectional mapping of imports, symbol invocations, inheritance hierarchies, and type definitions without fuzzy semantic guesswork.

Token Pruning & Context Compression

Reduces prompt overhead injected into Claude Sonnet by up to 93% by stripping irrelevant function bodies while preserving essential call and interface signatures.

PR Blast Radius Detection

Static scope calculation for every Pull Request. Pinpoints exactly which downstream modules, contract consumers, and integration tests must run before deployment.

Zero AI Training Guarantee

Strict contractual privacy: proprietary source code and AST schemas are never stored, inspected, or used to train, fine-tune, or evaluate third-party LLMs.

Local Engine or EU Cloud Cache

Run the engine 100% locally in open-source mode without code egress, or accelerate distributed engineering teams with low-latency EU-hosted AST caching clusters.

Model Context Protocol (MCP)

Native MCP Server for Claude Code and Claude Sonnet

Connect in 30 seconds to Claude Code CLI, Claude Desktop, or custom Anthropic API agents via the open Model Context Protocol specification.

Exposed MCP Tools

Standardized JSON-RPC tools built according to Anthropic's official MCP specification

View .well-known/mcp/server-card.json
index_repository MCP Tool
Triggers incremental AST syntactic indexing over the target developer workspace.
query_ast_graph MCP Tool
Deterministic query of AST syntax nodes, invocation call graphs, and inter-module dependencies.
find_symbol_references MCP Tool
Discovers all cross-file occurrences and valid call sites for functions, interfaces, or classes.
get_pr_impact_blast_radius MCP Tool
Calculates blast radius from a Git diff, highlighting broken interface contracts and affected unit tests.
stream_context_slice MCP Tool
Streams a token-pruned syntactic slice and symbol signatures to maximize prompt economy.
validate_mcp_health MCP Tool
Verifies latency, memory consumption, and synchronization state between local and cloud AST indexes.
Protocol: MCP 2024-11-05 · Transport: stdio / SSE / HTTP · Endpoint: https://api.codecontextkit.com/mcp
Developer Workflows

Native Integration in CI/CD and Terminal

Automate Pull Request impact analysis and keep AST indices synchronized across GitHub Actions, GitLab CI, and local developer workstations.

.github/workflows/codecontextkit-impact.yml YAML
name: CodeContextKit PR Blast Radius
on: [pull_request]

jobs:
  ast-impact:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run CodeContextKit AST Diff
        uses: codecontextkit/action-ast-impact@v1
        with:
          api-token: ${{ secrets.CCK_API_KEY }}
          claude-model: claude-sonnet
          fail-on-breaking-contract: true

Official Installers & SDKs

Native compiled Rust binaries and lightweight npm wrappers with C++ Tree-sitter bindings for maximum execution speed.

$ npm install -g @codecontextkit/cli
$ cargo install codecontextkit-cli
$ brew install codecontextkit/tap/cck
REST API · OpenAPI 3.1

Public HTTP Endpoints under /api/v1

Every MCP tool exposed by CodeContextKit is also available as a fully documented REST endpoint, featuring Bearer token auth, TLS 1.3, and predictable tiered rate limits.

Base URL https://api.codecontextkit.com/api/v1 OpenAPI 3.1 + MCP server card →
MethodEndpointDescriptionAuthRate limit
POST /api/v1/repos/index Incremental repository-wide AST indexing Bearer key 10 req/min
GET /api/v1/graph/:repo/deps Cross-module dependency and invocation call graph Bearer key 120 req/min
GET /api/v1/symbol/:repo/refs Cross-file references for a specific syntactic symbol Bearer key 120 req/min
POST /api/v1/pr/blast-radius Git diff blast radius: affected modules, contracts, and tests Bearer key 60 req/min
POST /api/v1/context/slice Syntactic code slice pruned to minimize token consumption Bearer key 120 req/min
GET /api/v1/mcp/health MCP server health and AST cache cluster status Bearer key 120 req/min
Responses in application/json with RFC 9457 error details. MCP transport: streamable http at https://api.codecontextkit.com/mcp. Engineering Team plan expands rate limits to 1,000 req/min with up to 64 concurrent MCP connections.
Transparent Pricing

Simple Plans for Developers & Engineering Teams

Predictable billing. Get started for free locally with open-source repositories or empower your entire organization with distributed AST caching and enterprise SLA.

Billing Currency:
Open Source
For solo developers and public open-source software repositories.
$0/mo
  • Local and public OSS repositories
  • Local Tree-sitter AST syntax parsing
  • Standard local MCP server (stdio transport)
  • Up to 10,000 AST nodes per repository index
  • Community Discord and GitHub Discussions
Get Started Free
Engineering Team
For development teams coordinating multiple microservices & monorepos.
$99/mo
  • Up to 10 engineering seats included
  • Cross-repo indexing across polyrepo & large monorepos
  • Automated GitHub Actions and GitLab CI PR bot
  • Dedicated MCP HTTP endpoints with SAML/SSO auth
  • SOC2 Type II and GDPR DPA compliance reports
  • Private shared Slack / Teams engineering channel
Deploy for Team
Frequently Asked Questions

Everything You Need to Know

Technical insights into MCP server operations, Tree-sitter AST computation, and enterprise zero-training privacy guarantees.

CodeContextKit functions as a native server implementing the open Model Context Protocol (MCP) initiated by Anthropic. By executing claude mcp add codecontextkit -- uvx codecontextkit-mcp, the Claude Code CLI registers our syntactic tools automatically, allowing Claude Sonnet to request precise AST call graphs and symbol declarations before proposing code edits.
No. CodeContextKit parses syntax trees and builds dependency graphs locally on your workstation or within your isolated EU private cloud tenancy. We enforce a binding contractual Zero AI Training guarantee: client code and AST metadata are never retained, inspected, or utilized to train or fine-tune public LLMs.
We provide first-class native grammar support for TypeScript, JavaScript, Python, Rust, Go, Java, C, C++, and SQL via optimized Rust Tree-sitter bindings. Additional languages can be plugged in seamlessly via compiled WebAssembly (WASM) grammar bundles.
It is the standardized machine-readable discovery document hosted at /.well-known/mcp/server-card.json defining metadata, capabilities, transport protocols, and JSON-RPC tool schemas for our MCP server, allowing clients like Claude Code and Claude Desktop to auto-discover capabilities without manual configuration.
Yes. Our Open Source tier and standalone CLI binary run 100% autonomously on local developer machines. They require zero outbound internet connectivity to parse ASTs, generate cross-file dependency matrices, or service local MCP JSON-RPC requests via stdio transport.
Rather than dumping entire source files into Claude's prompt window, CodeContextKit isolates only the syntactic nodes pertinent to the requested symbol or diff. Function bodies are pruned to type signatures and interface contracts, reducing token consumption by 80% to 93% while accelerating inference latency.
We support billing in both US Dollars (USD) and Euros (EUR) via credit card, debit card, SEPA direct debit, and enterprise invoicing powered by Stripe. You can toggle between USD and EUR at any time, and cancel your plan with a single click.
About CodeContextKit

Compiler Engineering & Agentic Context from Madrid, Spain

CodeContextKit is an enterprise B2B SaaS software platform engineered and operated in Madrid, Spain. We were founded on the conviction that autonomous coding agents like Claude Code don't need fuzzy vector heuristics or stochastic search, but rather formal static analysis, deterministic AST graphs, and robust compiler tooling.

We build pure, high-performance software compliant with European Union privacy regulations (GDPR) and the open Model Context Protocol standard.

Headquarters: Madrid, Spain GDPR / EU Compliant Pure B2B Software SaaS Zero Model Training
// Corporate & Legal Entity
CodeContextKit Systems S.L.
NIF: B-88629031 · Registro Mercantil de Madrid
Paseo de la Castellana 95, Planta 18 · 28046 Madrid, Spain
Technical Stack:
Rust (AST Parser Engine) · Tree-sitter · TypeScript (MCP SDK) · Anthropic Claude API
Engineering Leadership

Built by Systems & Compiler Engineers

Deep expertise in language grammars, incremental parsers, and autonomous coding infrastructure.

Marc Soler Vidal

Founder & Systems Engineer

Systems engineer and compiler specialist with extensive background in deterministic static analysis, Tree-sitter incremental grammars, and low-latency call graph resolution. Based in Madrid, Spain, Marc engineered CodeContextKit to eliminate token bloat and hallucinated API contracts in autonomous agent workflows, creating native AST infrastructure for Claude Code and the Anthropic Model Context Protocol (MCP).