Skip to main content
Glama

run_python

Execute Python code or scripts directly within the Code MCP Server, enabling integration with VS Code via the Model Context Protocol. Supports custom arguments and virtual environments.

Instructions

Execute Python code or script

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoCommand line arguments
codeNoPython code to execute
script_pathNoPath to Python script file
venvNoPath to virtual environment

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/block/vscode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server