{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_rxb9uukrvqjx","handle":"mcp-server-code-extractor","url":"https://wellknown.network/agents/mcp-server-code-extractor","links":{"self":"https://wellknown.network/agents/mcp-server-code-extractor/record.json","html":"https://wellknown.network/agents/mcp-server-code-extractor","markdown":"https://wellknown.network/agents/mcp-server-code-extractor/record.md","api":"https://wellknown.network/api/v1/agents/mcp-server-code-extractor","status":"https://wellknown.network/api/v1/agents/mcp-server-code-extractor/status","claim":"https://wellknown.network/agents/mcp-server-code-extractor/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-server-code-extractor/claim.json","badge":"https://wellknown.network/agents/mcp-server-code-extractor/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-server-code-extractor/history","tools":"https://wellknown.network/api/v1/agents/mcp-server-code-extractor/tools"},"ard":{"identifier":"urn:air::server:mcp-server-code-extractor","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-server-code-extractor","summary":"A Model Context Protocol (MCP) server that provides precise code extraction tools using tree-sitter parsing","description":"# MCP Server Code Extractor\n\nA 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.\n\n## Why MCP Server Code Extractor?\n\nWhen working with AI coding assistants like Claude, you often need to:\n- Extract specific functions or classes from large codebases\n- Get an overview of what's in a file without reading the entire thing\n- Retrieve precise code snippets with accurate line numbers\n- Avoid manual parsing and grep/sed/awk gymnastics\n\nMCP Server Code Extractor solves these problems by providing structured, tree-sitter-powered code extraction tools directly within your AI assistant.\n\n## Features\n\n- **🎯 Precise Extraction**: Uses tree-sitter parsing for accurate code boundary detection\n- **🔍 Semantic Search**: Search for function calls and code patterns across files and directories\n- **🌍 30+ Languages**: Supports Python, JavaScript, TypeScript, Go, Rust, Java, C/C++, and many more\n- **📍 Line Numbers**: Every extraction includes precise line number information\n- **🗂️ Directory Search**: Search entire codebases with file pattern filtering and exclusions\n- **📊 Depth Control**: Extract at different levels (top-level only, classes+methods, everything)\n- **🌐 URL Support**: Fetch and extract code from GitHub, GitLab, and direct file URLs\n- **🔄 Git Integration**: Extract code from any git revision, branch, or tag\n- **⚡ Fast & Lightweight**: Efficient caching and minimal dependencies\n- **🤖 AI-Optimized**: Designed specifically for use with AI coding assistants\n\n## Installation\n\n### Quick Start with uvx (Recommended)\n\n```bash\n# Install and run directly with uvx\nuvx mcp-server-code-extractor\n```\n\n### Alternative Installation Methods\n\n#### Using UV\n```bash\n# Install UV if you haven't already\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# Run as package with UV\nuv run mcp-server-code-extractor\n```\n\n#### Using pip\n```ba…","publisher":null,"homepage":"https://github.com/ctoth/mcp-code-extractor#readme","repository":"https://github.com/ctoth/mcp-code-extractor#readme","version":"0.4.2","license":null,"protocols":["mcp"],"tags":["mcp","model-context-protocol","code-extraction","tree-sitter","ai-tools"],"pricing":null,"endpoints":[{"url":"pypi:mcp-server-code-extractor","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"documents.extraction","name":"Data Extraction","confidence":1,"provenance":"derived"},{"slug":"dev.version-control","name":"Version Control","confidence":1,"provenance":"derived"},{"slug":"dev.package-management","name":"Packages & Dependencies","confidence":0.859,"provenance":"derived"},{"slug":"dev.filesystem","name":"Filesystem","confidence":0.802,"provenance":"derived"}],"categories":["dev","documents"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"mcp-server-code-extractor","registry":"pypi","observedAt":"2026-10-28T13:24:46.594Z","publishedAt":"2025-07-14T05:45:07.304131Z","latestVersion":"0.4.2"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-server-code-extractor","url":"https://pypi.org/project/mcp-server-code-extractor/","firstSeenAt":"2026-09-10T03:20:08.125Z","fetchedAt":"2026-10-28T13:23:13.638Z","normalizedAt":"2026-10-28T13:23:13.638Z"}]},"firstSeenAt":"2026-09-10T03:20:08.125Z","updatedAt":"2026-10-28T13:24:46.594Z"}