pydantic/pydantic-ai/mcp-run-python
Overview
A tool to run Python code in a secure sandbox via MCP tool calls.
Best For
Securely execute Python code in a sandbox using MCP tool calls with pydantic-ai.
Decision Snapshot
Usage
available
Docs
4 links
- • GitHub stars: 16362
- • Forks: 1937
- • Source provenance count: 1
- • Active signal: Updated this week from lifecycle signals.
- • Last seen: 4/15/2026
- • Published: 3/15/2026
Usage
from pydantic_ai import Agent && # Define a very simple agent including the model to use, you can also set the model when running the agent. && agent = Agent( && 'anthropic:claude-sonnet-4-6',
Features
- • Profile category: Servers.
- • Primary language signal: Python.
- • Official repository link is available.
- • Official website link is available.
- • Topic tags: mcp, curated, markdown-list, awesome-mcp-servers-punkpeye.
- • Documentation links available: 4.
Prompt Examples
example
• from pydantic_ai import Agent && # Define a very simple agent including the model to use, you can also set the model when running the agent. && agent = Agent( && 'anthropic:claude-sonnet-4-6',
Notes / Requirements
- • Primary language: Python
- • License: MIT
- • Source feeds: Awesome MCP Servers (punkpeye)
- • Topic cluster: general
Official Links
Source Information
You can verify all information on this page against the source repository above.
Related MCP Tools
mavdol/capsule/mcp-server
A tool to run untrusted Python and JavaScript code within WebAssembly sandboxes.
HanSur94/matlab-mcp-server-python
A Python MCP server connecting AI agents to MATLAB, enabling code execution, async jobs with progress reporting, interactive Plotly plots, custom .m function exposure, and live monitoring via a dashboard.
ckanthony/openapi-mcp
A Dockerized MCP server enabling AI agents to access APIs using existing OpenAPI documentation, with support for schema generation, secure API key management, and operation filtering.
ouvreboite/openapi-to-mcp
Lightweight MCP server to access APIs using OpenAPI specifications, supporting OAuth2 and full JSON schema parameters and request body.
What To Do Next
Continue from this tool into a workflow and a learn guide to shorten implementation time.