# PeerFoundry Run [Health: Active]

**Category:** 👨‍💻 Code Execution  
**Repository:** https://run.peerfoundry.ai/quickstart  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/peerfoundry-run

## Description
Beta code sandbox for agents. Run Python or JavaScript with no network and a 30 s timeout.

## Tools
Capabilities this server exposes over MCP:

- **run_code** — Run python or javascript with no outbound network. Returns stdout, stderr, exit_code, status, duration_ms, and run_id. Call keys.create once. Pass caller_key from keys.create on every later tools/call. Authorization: Bearer pf_... or the header X-Caller-Key also works. A header key is used when one is present.
- **keys.create** — Mint one pf_ key. The raw key is shown once.
- **keys_create** — Mint one pf_ key. The raw key is shown once.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "peerfoundry-run": {
    "url": "https://run.peerfoundry.ai/mcp"
  }
}
```

## Documentation

## What PeerFoundry Run does

PeerFoundry Run exposes a beta code sandbox through the Model Context Protocol. Agents can submit Python or JavaScript for execution with the `run_code` tool. Runs have no outbound network access and are limited to 30 seconds.

The server is suited to agent workflows that need to calculate values, transform data already available to the agent, or execute small code snippets without allowing the code to contact external services. It returns structured execution details rather than only the program output: standard output, standard error, exit code, status, elapsed time in milliseconds, and a run identifier.

## How it works

Clients connect to the hosted MCP endpoint:

`https://run.peerfoundry.ai/mcp`

Before making later tool calls, create a caller key with `keys.create` or `keys_create`. Each of these tools mints a `pf_` key and displays the raw value once. Preserve that value securely because it is needed for subsequent calls.

Pass the resulting key as `caller_key` on later tool calls. Authorization can also use a bearer token beginning with `pf_`, or the `X-Caller-Key` header. When both authentication methods are present, the header key is used.

## Setup and configuration

Configure an MCP client to use the hosted endpoint rather than running a local process. The connection flow is:

1. Connect to `https://run.peerfoundry.ai/mcp`.
2. Call `keys.create` or `keys_create` once.
3. Store the returned raw `pf_` key securely.
4. Include the key as `caller_key` on later tool calls, or authorize with the supported bearer or `X-Caller-Key` mechanism.

No environment variables are required for the hosted service. The server is in beta, so treat it accordingly when evaluating it for production workflows.

## Tools and capabilities

- `run_code`: Execute Python or JavaScript without outbound network access. The result includes `stdout`, `stderr`, `exit_code`, `status`, `duration_ms`, and `run_id`.
- `keys.create`: Mint a caller key whose raw value is shown once.
- `keys_create`: Alternative key-creation tool with the same one-time raw-key display behavior.

## Limitations and notes

Execution is restricted to Python and JavaScript. Code cannot make outbound network requests, and each run has a 30-second timeout. Authentication is part of the call flow: create a key first, then provide it on later calls. Keep the raw key because it is shown only once. The service is labeled beta, and each execution produces a run ID that can be retained for identifying the run.

_Full upstream README: https://allmcps.com/mcp/peerfoundry-run/readme_

