pctx
Supports UIby portofcontext
Execution layer for agentic tool calls, converting MCP servers into secure sandboxed code execution.
What it does
pctx acts as a middleware between AI agents and MCP servers. It introduces 'Code Mode', which replaces sequential, chatty tool calling with a single block of executable code running in a secure Deno sandbox. This drastically reduces token consumption and increases reliability for complex multi-step workflows.
Tools
pctx exposes a unified interface that aggregates multiple upstream MCP servers, allowing the agent to write TypeScript code that interacts with various tools (e.g., Stripe, Memory) without managing individual connections.
Installation
To run as a stdio MCP server, add this to your configuration:
{
"mcpServers": {
"pctx": {
"command": "pctx",
"args": ["mcp", "start", "--stdio"]
}
}
}
Supported hosts
- Claude Desktop
- Cursor
Quick install
brew install portofcontext/tap/pctxInformation
- Pricing
- free
- Published
- 4/12/2026
- stars







