A Model Context Protocol (MCP) server that provides precise code extraction tools using tree-sitter parsing
Until 2026-09-26 this record combined several servers published from one repository. The others now have records of their own: mseep-mcp-server-code-extractor. Checks from before that date include them.
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"mcp-server-code-extractor","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# MCP Server Code Extractor A Model Context Protocol (MCP) server that provides precise code extraction tools using tree-sitter parsing. Extract functions, classes, and code snippets from 30+ programming languages without manual parsing. ## Why MCP Server Code Extractor? When working with AI coding assistants like Claude, you often need to: - Extract specific functions or classes from large codebases - Get an overview of what's in a file without reading the entire thing - Retrieve precise code snippets with accurate line numbers - Avoid manual parsing and grep/sed/awk gymnastics MCP Server Code Extractor solves these problems by providing structured, tree-sitter-powered code extraction tools directly within your AI assistant. ## Features - **🎯 Precise Extraction**: Uses tree-sitter parsing for accurate code boundary detection - **🔍 Semantic Search**: Search for function calls and code patterns across files and directories - **🌍 30+ Languages**: Supports Python, JavaScript, TypeScript, Go, Rust, Java, C/C++, and many more - **📍 Line Numbers**: Every extraction includes precise line number information - **🗂️ Directory Search**: Search entire codebases with file pattern filtering and exclusions - **📊 Depth Control**: Extract at different levels (top-level only, classes+methods, everything) - **🌐 URL Support**: Fetch and extract code from GitHub, GitLab, and direct file URLs - **🔄 Git Integration**: Extract code from any git revision, branch, or tag - **⚡ Fast & Lightweight**: Efficient caching and minimal dependencies - **🤖 AI-Optimized**: Designed specifically for use with AI coding assistants ## Installation ### Quick Start with uvx (Recommended) ```bash # Install and run directly with uvx uvx mcp-server-code-extractor ``` ### Alternative Installation Methods #### Using UV ```bash # Install UV if you haven't already curl -LsSf https://astral.sh/uv/install.sh | sh # Run as package with UV uv run mcp-server-code-extractor ``` #### Using pip ```ba…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.