Python Code Explorer icon

Python Code Explorer

4

Extracts and analyzes Python code structures, focusing on import/export relationships, for language model integration.

About

This MCP server provides tools for extracting and analyzing Python code structures, focusing on import/export relationships between files. It offers features like smart code extraction, directory context inclusion, documentation inclusion, and LLM-friendly formatting, all while adhering to the Model Context Protocol standard. The server exposes a powerful code extraction tool that analyzes a target Python file, discovers imported modules, classes, and functions, and returns the complete code along with referenced objects and additional contextual files, all within specified token limits.

Key Features

  • Extracts relevant code sections within token limits.
  • Supports Model Context Protocol JSON-RPC standard.
  • Analyzes import relationships between Python files.
  • Formats code with metadata for language models.
  • Includes contextual files from the same directory.
  • 2 GitHub stars
  • Incorporates project documentation (README files).

Use Cases

  • Analyzing code dependencies for large Python projects.
  • Providing context to language models for code generation and understanding.
  • Integrating code exploration tools into MCP-compatible clients.
Craft Better Prompts with AnyPrompt
Sponsored