🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@paretools/python

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paretools/python

MCP server for Python — structured pip, mypy, ruff, and pytest output for AI agents

Source
npmnpm
Version
0.21.1
Version published
Weekly downloads
126
-57.58%
Maintainers
1
Weekly downloads
 
Created
Source

@paretools/python

npm License: MIT

Structured, token-efficient Python tool output for AI agents. Up to 65% fewer tokens than raw CLI output.

Part of the Pare suite of MCP servers.

Tools (8)

ToolDescription
pip-installInstall packages, returns summary of installed items
mypyType-check diagnostics (file, line, severity, message)
ruff-checkLint diagnostics (file, line, code, message)
pip-auditVulnerability report for installed packages
pytestRun tests, returns structured pass/fail results
uv-installInstall packages via uv with structured summary
uv-runRun a command in a uv-managed environment
blackFormat code with Black, returns changed/unchanged files

Quick Start

npx -y @paretools/python

Add to your MCP client config:

{
  "mcpServers": {
    "pare-python": {
      "command": "npx",
      "args": ["-y", "@paretools/python"]
    }
  }
}

Example

mypy output:

{
  "success": false,
  "errors": [
    {
      "file": "app/main.py",
      "line": 15,
      "severity": "error",
      "message": "Argument 1 to \"process\" has incompatible type \"str\"; expected \"int\"",
      "code": "arg-type"
    }
  ],
  "errorCount": 1,
  "warningCount": 0,
  "noteCount": 0
}

Python Interpreter Resolution

Python-backed tools prefer the project-local virtual environment before falling back to global commands. When a tool needs Python, Pare checks for interpreters in this order from the requested path:

  • .venv/bin/python, .venv/bin/python3 (or .venv/Scripts/python.exe on Windows)
  • venv/ and env/ with the same platform-specific interpreter names
  • python
  • python3

Tools such as ruff-check, ruff-format, pytest, mypy, pip-install, pip-audit, and black also fall back from a missing console script to python -m <module>. Use pythonPath on ruff-check, ruff-format, pytest, and mypy when a project needs an explicit interpreter override.

All Pare Servers (244 tools)

PackageToolsWraps
@paretools/gitstatus, log, diff, branch, show, add, commit, push, pull, checkoutgit
@paretools/testrun, coveragepytest, jest, vitest, mocha
@paretools/npminstall, audit, outdated, list, run, test, initnpm
@paretools/buildtsc, build, esbuild, vite-build, webpacktsc, esbuild, vite, webpack
@paretools/lintlint, format-check, prettier-format, biome-check, biome-formateslint, prettier, biome
@paretools/pythonpip-install, mypy, ruff-check, pip-audit, pytest, uv-install, uv-run, blackpip, mypy, ruff, pytest, uv, black
@paretools/dockerps, build, logs, images, run, exec, compose-up, compose-down, pulldocker, docker compose
@paretools/cargobuild, test, clippy, run, add, remove, fmt, doc, checkcargo
@paretools/gobuild, test, vet, run, mod-tidy, fmt, generatego, gofmt

Compatible Clients

Works with any MCP-compatible client: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code / GitHub Copilot, Cline, Roo Code, Zed, Continue.dev, Gemini CLI, OpenAI Codex

License

MIT

Keywords

mcp

FAQs

Package last updated on 14 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts