AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Workflow Automation/
pctx
pctx logo

pctx

Active·★ 282·MIT·Updated 2026-10-20

pctx sits between AI agents and MCP servers, aggregating multiple upstream MCP servers, handling authentication, and exposing tools through a unified Code Mode interface. It replaces sequential tool calling with code execution, resulting in significant token reduction. It supports multiple installation methods and provides Python SDK for agent development.

pctx sits in the Workflow Automation category, so it is usually better judged by workflow fit, deployment style, and team needs than by isolated features alone. Based on the available metadata, it leans most clearly toward Code Mode interface: tools exposed as code functions for efficient agent interaction. A representative use case is Building AI agents that need to interact with multiple MCP servers efficiently. The listed license is MIT. GitHub stars are currently 282. Relevant tags include ai-agents, api.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool.

#ai-agents#api#infrastructure#local-development#mcp#mcp-server#mcp-servers#open-source
$ Install
$ npm i -g @portofcontext/pctx
↗ Visit site★ GitHub
01

Features

01Code Mode interface: tools exposed as code functions for efficient agent interaction
02Upstream MCP server aggregation: connect to multiple MCP servers through a single interface
03Simple config with CLI: create pctx.json config with a simple CLI
04Secure authentication: source secrets from environment variables, system keychain, and external commands
02

Why choose it

+Code Mode interface: tools exposed as code functions for efficient agent interaction
+Upstream MCP server aggregation: connect to multiple MCP servers through a single interface
+Building AI agents that need to interact with multiple MCP servers efficiently
+Supports 4 platforms or runtime environments.
03

Trade-offs

!The final decision should still be made through side-by-side comparison with similar tools.
04

Compatibility

macOS
Homebrew
Verified via docs
Linux
cURL
Verified via docs
Python
PyPI
Verified via docs
Node
Coming Soon
Verified via docs
05

Quick start

1
$ npm i -g @portofcontext/pctx
06

Use cases

↳Building AI agents that need to interact with multiple MCP servers efficiently
↳Running Code Mode sessions for complex multi-step operations with token reduction
↳Using as a unified MCP server for authentication and tool aggregation
07

Alternatives

⚡Top VS:
VShayhooks★154→VSpm-skills-mcp★20→VSNyxID★39→VSagentrq★1.2k→
hayhooks logo
hayhooks★ 154
Easily deploy Haystack pipelines as REST APIs and MCP Tools.
VSCompare→
pm-skills-mcp logo
pm-skills-mcp★ 20
MCP server exposing 29 best-practice product management skills plus workflows and lifecycle tools, instantly accessible to any AI via Model Context Protocol.
VSCompare→
NyxID logo
NyxID★ 39
Connect AI agents to any API, anywhere. Securely. Open-source gateway that proxies requests, injects credentials automatically, punches through NAT to reach localhost services, and wraps REST APIs as MCP tools. Per-agent isolation. Never expose a raw key.
VSCompare→
agentrq logo
agentrq★ 1.2k
AgentRQ: Human-in-loop realtime conversational task manager for AI Agents.
VSCompare→
android-remote-control-mcp logo
android-remote-control-mcp★ 734
An MCP Server for Android running on the phone, optmized for token usage, supports also files downloads and cloudflare (free) and ngrok automated tunnelling.
VSCompare→
zapier-mcp logo
zapier-mcp★ 443
Connect your AI to thousands of apps with the Model Context Protocol.
VSCompare→
adeu logo
adeu★ 168
Native Word Track Changes for AI agents. An MCP server and Python SDK that translates LLM edits into safe DOCX redlines without breaking formatting.
VSCompare→
typo3-mcp-server logo
typo3-mcp-server★ 106
One MCP endpoint connects your TYPO3 site to Claude, Cursor, n8n, and any AI tool — safely through workspaces.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Compatibility05Quick start06Use cases07Alternatives
portofcontext /
pctx
↗

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.

282MIT
Last commit2d ago
StatusActive
CategoryWorkflow Automation
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.