MCP Server Code Extractor β AI skill for Claude Code
π― Precise code extraction for AI assistants - MCP server using tree-sitter to extract functions, classes & snippets from 30+ languages without manual parsing.
How to install MCP Server Code Extractor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ctoth/mcp_server_code_extractor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What MCP Server Code Extractor does
π― Precise code extraction for AI assistants - MCP server using tree-sitter to extract functions, classes & snippets from 30+ languages without manual parsing.
Alternatives in AI
- Jcodemunch MCP β Cut AI token costs 95%+ on code exploration 2.6k β
- Auto Re Agent β Open-source AI reverse-engineering agent using Ghidra and LLMs to reconstruct and validate C/C++ functions fro 1.4k β
- Codeseek β Rust-powered code intelligence CLI for AI coding agents 764 β
README
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)
# Install and run directly with uvx
uvx mcp-server-code-extractor
Alternative Installation Methods
Using UV
# Install UV if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Run as package with UV
uv run mcp-serv
Related Skills
Reporecall
Local codebase memory for Claude Code. Tree-sitter AST indexing (22 languages), hybrid keyword + vector search
Seal Extractor
Extract red seals (ε ¬η« /ε°η« ) from scanned documents β OpenCV color filtering + AI gap repair. Claude Code skill.
Livewire Snapshot Extractor
Extract Livewire component snapshots (v2, v3, v4) as structured context for Claude Code and other AI coding as
Semble Rs
Fast, AI-agent-native code search in Rust β hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp
Ast Outline
ast-outline lets AI coding agents pull exactly the code context they need β a repo skeleton, a file outline, o
Rpg Explainer
CLI tool to analyze IBM RPG programs using Tree-sitter and Claude LLM
Related Agents
Snippet Extractor
Extract code snippets with context (path, language, brief title) to support technical docs. Use proactively wh
Focused Doc Generator
Use this agent when you need to create precise, targeted documentation for specific code components, functions
Unused Code Cleaner
Detects and removes unused code (imports, functions, classes) across multiple languages. Use PROACTIVELY after