Skip to main content
Glama
rafalswiderski

Dynamic Code Executor MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
execute_codeA

Execute code in a secure isolated sandbox. Supports Python, JavaScript, and TypeScript.

The code will be executed in a temporary environment that is cleaned up after execution. You can optionally install packages before execution.

Use this when you need to:

  • Run code to get results or test functionality

  • Process data dynamically

  • Validate code behavior

  • Install and use external packages

Returns execution results including output, errors, and execution time.

validate_codeA

Validate code syntax without executing it. Performs static analysis to check for syntax errors.

Use this to check code validity before execution or to help debug syntax issues.

list_supported_languagesA

List all supported programming languages with their capabilities and package managers

get_execution_limitsB

Get information about execution limits and constraints

list_allowed_packagesA

List all packages allowed to be installed for each language.

Only whitelisted packages can be installed for security reasons. Use this tool to check which packages are available before writing code that requires external dependencies.

Returns a list of allowed packages for Python, JavaScript, and TypeScript.

search_cached_scriptsA

Search for similar cached scripts using semantic search.

Finds previously executed scripts that solve similar problems, even if the exact code differs. Use this when you need to solve a task - there might already be a working solution cached.

Example queries:

  • "fetch data from REST API"

  • "parse JSON and extract fields"

  • "read CSV file and calculate sum"

  • "scrape webpage content"

Returns ranked results by similarity with scores.

list_cached_scriptsA

List recently cached scripts (chronological order).

Shows the most recent successful executions. Use search_cached_scripts for finding scripts by task description.

get_cached_scriptA

Get a specific cached script by its hash.

Returns the full script details including code, result, packages used, and execution stats.

get_cache_statsA

Get statistics about the persistent script cache

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/rafalswiderski/mcp-code-executor'

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