# Priors

Equips an agent with a Robinhood Chain USDG wallet to handle x402 API payments and manage credit lines.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7
- Author: priors-agents
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/priors-agents/priors/tree/HEAD/packages/mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/priors

## What it does

Priors connects your agent to a USDG wallet on Robinhood Chain. It processes HTTP 402 responses to settle machine-to-machine x402 invoices, checking prices against preset limits before spending. Public inspection tools can run directly via the hosted endpoint `https://mcp.priors.trade/mcp` without configuring secrets.

The local `@priors/mcp` package handles active financial operations. Through its interface, an agent inspects credit scores, borrows against Priors credit lines, repays debt, and deposits unallocated funds into Morpho vaults. Every state-changing transaction demands ETH for gas alongside `PRIORS_KEY`; lacking gas stops transaction execution immediately.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `PRIORS_KEY`, `PRIORS_KEY_FILE`, `PRIORS_AGENT_ID`, `PRIORS_MAX_PRICE_USD`, `PRIORS_MAX_SPEND_USD`, `PRIORS_MAX_BORROW_USD`, `PRIORS_MAX_SPEND_DAY_USD`, `PRIORS_MAX_BORROW_DAY_USD`, `PRIORS_PAY_HOSTS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env PRIORS_KEY=<PRIORS_KEY> --env PRIORS_KEY_FILE=<PRIORS_KEY_FILE> --env PRIORS_AGENT_ID=<PRIORS_AGENT_ID> --env PRIORS_MAX_PRICE_USD=<PRIORS_MAX_PRICE_USD> --env PRIORS_MAX_SPEND_USD=<PRIORS_MAX_SPEND_USD> --transport stdio mcp -- npx -y @priors/mcp
```
Replace <…> with your own values. 4 more environment variables are in the server README

### Codex

**Platform CLI**
```bash
codex mcp add mcp --env PRIORS_KEY=<PRIORS_KEY> --env PRIORS_KEY_FILE=<PRIORS_KEY_FILE> --env PRIORS_AGENT_ID=<PRIORS_AGENT_ID> --env PRIORS_MAX_PRICE_USD=<PRIORS_MAX_PRICE_USD> --env PRIORS_MAX_SPEND_USD=<PRIORS_MAX_SPEND_USD> -- npx -y @priors/mcp
```
Replace <…> with your own values. 4 more environment variables are in the server README

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@priors/mcp"
            ],
            "env": {
                "PRIORS_KEY": "<PRIORS_KEY>",
                "PRIORS_KEY_FILE": "<PRIORS_KEY_FILE>",
                "PRIORS_AGENT_ID": "<PRIORS_AGENT_ID>",
                "PRIORS_MAX_PRICE_USD": "<PRIORS_MAX_PRICE_USD>",
                "PRIORS_MAX_SPEND_USD": "<PRIORS_MAX_SPEND_USD>"
            }
        }
    }
}
```
Replace <…> with your own values. 4 more environment variables are in the server README

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@priors/mcp"
            ],
            "env": {
                "PRIORS_KEY": "<PRIORS_KEY>",
                "PRIORS_KEY_FILE": "<PRIORS_KEY_FILE>",
                "PRIORS_AGENT_ID": "<PRIORS_AGENT_ID>",
                "PRIORS_MAX_PRICE_USD": "<PRIORS_MAX_PRICE_USD>",
                "PRIORS_MAX_SPEND_USD": "<PRIORS_MAX_SPEND_USD>"
            }
        }
    }
}
```
Replace <…> with your own values. 4 more environment variables are in the server README

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e PRIORS_KEY=<PRIORS_KEY> -e PRIORS_KEY_FILE=<PRIORS_KEY_FILE> -e PRIORS_AGENT_ID=<PRIORS_AGENT_ID> -e PRIORS_MAX_PRICE_USD=<PRIORS_MAX_PRICE_USD> -e PRIORS_MAX_SPEND_USD=<PRIORS_MAX_SPEND_USD> mcp npx -y @priors/mcp
```
Replace <…> with your own values. 4 more environment variables are in the server README

## When to use it
- settle x402 HTTP invoices directly in USDG
- inspect agent credit ratings and outstanding debt
- borrow and return funds on a Priors credit line
- deposit idle USDG balances into Morpho savings

## Example prompts
- Check the USDG wallet balance and inspect our open credit line.
- Fetch the target endpoint and settle the x402 invoice if it is under the price cap.
- Deposit unspent USDG into the savings vault.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
