QWED

Type to search pages, engines and advisories.

    Looking for API details?Search the docs

    Platform·MCP serverv0.3.0

    MCP clients can run calculations as code on the server.

    An optional MCP server for Claude Desktop, VS Code and any MCP-compatible client. It gives the assistant a tool to compute instead of guess: Python that passes an allowlist check runs in a subprocess, and the result comes back. Code execution stays off until you turn it on.

    At a glance

    Version
    0.3.0
    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. Checks the code against the allowlist, runs it in a subprocess if it is admitted, 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

    VariableEffect
    QWED_MCP_TRUSTED_CODE_EXECUTIONMust be true for code to run. Unset, code that passes the allowlist is still refused, with BLOCKED_ADMIN_POLICY.
    QWED_MCP_BACKGROUND_TIMEOUTHow long a background job may run, in seconds: 120 by default, 600 at most.

    Where the Claude Desktop config lives

    SystemFile
    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

    claude_desktop_config.json
    {  "mcpServers": {    "qwed-verification": {      "command": "qwed-mcp",      "env": { "QWED_MCP_TRUSTED_CODE_EXECUTION": "true" }    }  }}

    Good to know

    • Code runs only when every module, builtin and attribute it uses is on the allowlist: computation-only standard-library modules, with no file, network, process or environment access and no third-party packages. Refused code is reported with the reason and never runs.
    • The allowlist is a static check of what the code can reach. It is not a proof that the code is correct, and it does not limit resource use: nothing limits memory.
    • 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.

    More agents and protocols