AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompare
Submit Tool
Home/
Workflow Automation/
pctx
pctx logo

pctx

Active·★ 258·MIT·Updated 2026-05-08
★ Trending★ Workflow Automation★ Security & Safety

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.

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.

#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

Compatibility

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

Quick start

1
$ npm i -g @portofcontext/pctx
04

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
05

Alternatives

Gemini CLI logo
Gemini CLI★ 104.7k
An open-source AI agent that brings the power of Gemini directly into your terminal. Supports native MCP.
vs →
dagster logo
dagster★ 15.6k
An orchestration platform for the development, production, and observation of data assets.
vs →
fastmcp logo
fastmcp★ 25.4k
🚀 The fast, Pythonic way to build MCP servers and clients.
vs →
FunASR logo
FunASR★ 16.6k
Industrial-grade speech recognition toolkit: 170x realtime, 50+ languages, speaker diarization, emotion detection, streaming, and OpenAI-compatible API.
vs →
agents-best-practices logo
agents-best-practices★ 1.1k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
vs →
holaOS logo
holaOS★ 5.4k
The agent environment for long-horizon work, continuity, and self-evolution.
vs →
semble logo
semble★ 4.5k
Fast and Accurate Code Search for Agents
vs →
csharp-sdk logo
csharp-sdk★ 4.3k
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.
vs →
See all alternatives →

Related searches

pctx AlternativesBest Workflow Automation Tools 2026Open Source Workflow Automationpctx Tutorialpctx Vs Competitorsai-agentsapiinfrastructure

Comments

Log in to leave a comment
  • J
    Jamie WilsonApr 22, 2026

    Auto-conversion is reliable enough for production use.

  • River Rivera
    River RiveraApr 2, 2026

    Execution layer for agentic tool calls that auto-converts tools across frameworks.

  • Rebel Rivera
    Rebel RiveraMar 7, 2026

    Good for polyglot agent setups where tools need to work across frameworks.

  • S
    Shawn JacksonFeb 26, 2026

    Reduces the glue code between different agent frameworks and tool ecosystems.

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
Stats
GitHub Stars★ 258
Last commit3w ago
StatusActive
LicenseMIT
CategoryWorkflow Automation
Trend (30d)
+10.3↑ 0.9%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
QYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.