PyEye MCP server - semantic Python code analysis for Claude Code
npx claudepluginhub okeefeco/pyeye-mcpSemantic Python code analysis MCP server - find symbols, navigate definitions, trace call hierarchies, and understand code structure
An extensible MCP (Model Context Protocol) server that provides intelligent Python code analysis, navigation, and understanding capabilities for AI assistants like Claude.
The PyEye can be installed in two ways:
Install directly into your Python project's virtual environment:
# Activate your project's virtual environment
source /path/to/your/project/venv/bin/activate
# Install from PyPI
pip install pyeye-mcp
# Or install from source
git clone https://github.com/okeefeco/pyeye-mcp.git
pip install -e ./pyeye-mcp
Then create a .mcp.json file in your project root:
{
"mcpServers": {
"pyeye": {
"type": "stdio",
"command": "python",
"args": ["-m", "pyeye.mcp"],
"env": {}
}
}
}
This way, the MCP server uses your project's environment and has access to all your project's dependencies.
For analyzing multiple projects or using with global Python:
# Install globally with pipx (recommended for isolation)
pipx install pyeye-mcp
# Or with pip
pip install --user pyeye-mcp
# Or from source
git clone https://github.com/okeefeco/pyeye-mcp.git
cd pyeye-mcp
pip install --user .
# Add the MCP server globally (available in all projects)
claude mcp add pyeye -s user -- python -m pyeye.mcp
# Verify it's connected
claude mcp list
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"pyeye": {
"command": "python",
"args": ["-m", "pyeye.mcp"],
"env": {}
}
}
}
Note: Use the full path to Python if needed (e.g., /usr/local/bin/python3 or C:\\Python311\\python.exe).
As of 2025, GitHub Copilot has full MCP support in VS Code, JetBrains, Eclipse, and Xcode. Follow these steps to use this PyEye server with GitHub Copilot:
Your GitHub Copilot administrator needs to enable the MCP servers policy:
Install the PyEye server in your project or globally:
# Option A: Install in your project's virtual environment (recommended)
pip install pyeye-mcp
# Option B: Install globally with pipx
pipx install pyeye-mcp
# Option C: Install from source
git clone https://github.com/okeefeco/pyeye-mcp.git
pip install -e ./pyeye-mcp