The reputation layer for AI skills, tools & agents

portofcontext/pctx

Score: 59.7 Rank #96

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.

Overview

portofcontext/pctx is a Rust MCP server licensed under MIT. 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. Topics: ai-agents, api, local-development, mcp, mcp-server, open-source, infrastructure.

Ranked #96 out of 25632 indexed tools.

In the top 1% of all indexed tools.

Actively maintained with commits in the last week.

Ecosystem

Rust MIT
ai-agentsapilocal-developmentmcpmcp-serveropen-sourceinfrastructure

Signal Breakdown

Stars 218
Freshness 2d ago
Issue Health 86%
Contributors 6
Dependents 0
Forks 24
Description Detailed
License MIT

How to Improve

Dependents medium impact

No downstream dependents detected yet — adoption by other projects is the strongest trust signal

Badge

AgentRank score for portofcontext/pctx
[![AgentRank](https://agentrank-ai.com/api/badge/tool/portofcontext--pctx)](https://agentrank-ai.com/tool/portofcontext--pctx)
<a href="https://agentrank-ai.com/tool/portofcontext--pctx"><img src="https://agentrank-ai.com/api/badge/tool/portofcontext--pctx" alt="AgentRank"></a>

Matched Queries

"mcp server""mcp-server""agent tool"

From the README

<div align="center">
  
  <h1>pctx</h1>

</div>

<div align="center">

The open source framework to connect AI agents to tools and mcp with [Code Mode](#what-is-code-mode)

</div>

## Install

```bash
# Homebrew
brew install portofcontext/tap/pctx

# cURL
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/portofcontext/pctx/main/install.sh | sh

# npm
npm i -g @portofcontext/pctx
```

## Core Functionality

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.

```bash
# Start Code Mode for Python SDK
pctx start

# Start Code Mode as a unified MCP server
pctx mcp init
pctx mcp dev
```

## Python SDK

Use the Python SDK if building agents in Python and want to run Code Mode with custom tools and/or MCP servers. The Python SDK is an HTTP client to the `pctx` server.

```bash
pip install pctx-client
```

```python
from pctx_client import Pctx, tool
from age
Read full README on GitHub →
Are you the maintainer? Claim this listing