MCP Directory
Back

pctx

by portofcontext · Rust · ★ 264

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

Auto-generated from the repo's primary language — check the repo's own README for its exact install instructions.

Claude Desktop config

A starting point for your claude_desktop_config.json (auto-generated — the repo's README may specify a published package name or required env vars):

{
  "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 →

Related ai & ml servers