MCP Directory

pctx

by portofcontext · Rust · ★ 248

pctx is the execution layer for agentic tool calls. It auto-converts agent tools and MCP servers into code that runs in secure sandboxes for token-efficient workflows.

#ai-agents#api#infrastructure#local-development#mcp#mcp-server#open-source

Install

cargo install --git https://github.com/portofcontext/pctx.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "pctx": {
      "command": "npx",
      "args": [
        "-y",
        "github:portofcontext/pctx"
      ]
    }
  }
}

From the README

pctx [](https://portofcontext.com) [](https://www.npmjs.com/package/@portofcontext/pctx) [](https://www.rust-lang.org) [](https://pctx.readthedocs.io/en/latest/) The open source framework to connect AI agents to tools and mcp with [Code Mode](#what-is-code-mode) —   T R U S T E D   B Y   —      pctx can be run as a stateless HTTP server for Code Mode sessions or as a unified MCP server that exposes Code Mode functionality for registered upstream MCP servers. Use the Python SDK if building agents in Python and want to run Code Mode with custom tools a…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related developer tools servers