# Mathematical Code Execution MCP server

> Executes sandboxed Python code to perform mathematical calculations and generate one-page PDF documents.

- Repository: https://github.com/Saify-Technologies/saifs-ai-mcps-docs
- Page: https://hostedmcp.org/servers/saify-technologies/code-execution
- Transport: remote
- Stars: 4
- License: MIT
- Latest version: 1.0.1

## Install

### Claude Code

```sh
claude mcp add --transport http code-execution https://code-execution-mcp.saifs.ai/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "code-execution": {
      "url": "https://code-execution-mcp.saifs.ai/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "code-execution": {
      "type": "http",
      "url": "https://code-execution-mcp.saifs.ai/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"code-execution","type":"http","url":"https://code-execution-mcp.saifs.ai/mcp"}'
```

### Codex

```sh
codex mcp add code-execution --url https://code-execution-mcp.saifs.ai/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.code-execution]
url = "https://code-execution-mcp.saifs.ai/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http code-execution https://code-execution-mcp.saifs.ai/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "code-execution": {
      "url": "https://code-execution-mcp.saifs.ai/mcp",
      "type": "http"
    }
  }
}
```

## Tools (1)

- `execute_code`

## FAQ

### What programming languages are supported?

The server only supports Python; all other languages are refused.

### Which Python libraries are available?

Numpy is available, but scipy and pandas are not included.

### Can the server generate PDF files?

Yes, it can generate a one-page PDF using the preinstalled fpdf library.

### Does the code execution have network access?

No, the code runs in an isolated process with no network access and no user filesystem access.
