Platform·MCP serverv0.2.3
MCP clients can run calculations as code on the server.
An MCP server for Claude Desktop, VS Code and any MCP-compatible client. It gives the assistant a tool to compute instead of guess: Python runs in a restricted subprocess and the result comes back.

At a glance
- Version
- 0.2.3
- Status on PyPI
- Beta
- Install
- pip install qwed-mcp
- Works with
- Claude Desktop, VS Code, any MCP client
- Needs
- No API key and no model of its own
- Turn on
- QWED_MCP_TRUSTED_CODE_EXECUTION=true
- Licence
- Apache-2.0
Tools
- execute_python_code
Run a calculation
Takes code, the Python to run, and an optional background flag. Runs the code in a subprocess and returns what it printed. With background set to true, it returns a job ID instead.
- verification_status
Check a job
Takes the job_id that a background call returned, and gives back the job’s state and output.
On the way
verify_json and verify_finance are in progress; verify_legal is planned.
Settings
| Variable | Effect |
|---|---|
| QWED_MCP_TRUSTED_CODE_EXECUTION | Must be true for code to run. Unset, every call is refused with BLOCKED_ADMIN_POLICY. |
| QWED_MCP_BACKGROUND_TIMEOUT | How long a background job may run, in seconds: 120 by default, 600 at most. |
Where the Claude Desktop config lives
| System | File |
|---|---|
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Get started
{ "mcpServers": { "qwed-verification": { "command": "qwed-mcp", "env": { "QWED_MCP_TRUSTED_CODE_EXECUTION": "true" } } }}Good to know
- Each piece of code first goes through a code-safety check, and code it flags is blocked.
- A call without background times out after 30 seconds.
- The code runs with the server’s privileges. Of the server’s environment it gets only PATH, PYTHONPATH and SYSTEMROOT. Connect only clients and inputs you trust.
- Running code does not by itself detect injection.
- The server returns what the code computed; it does not verify the result, and Python floating-point arithmetic is not exact for decimals.
- On Windows, if qwed-mcp is not on the PATH, use "command": "python" with "args": ["-m", "qwed_mcp.server"].
- The earlier verify_* tools were removed in v0.2.1.