Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-priors-agents-priors": {
"command": "npx",
"args": [
"-y",
"@priors/mcp"
],
"env": {
"PRIORS_KEY": "<YOUR_VALUE>",
"PRIORS_KEY_FILE": "<VALUE>",
"PRIORS_AGENT_ID": "<VALUE>",
"PRIORS_MAX_PRICE_USD": "<VALUE>",
"PRIORS_MAX_SPEND_USD": "<VALUE>",
"PRIORS_MAX_BORROW_USD": "<VALUE>",
"PRIORS_MAX_SPEND_DAY_USD": "<VALUE>",
"PRIORS_MAX_BORROW_DAY_USD": "<VALUE>",
"PRIORS_PAY_HOSTS": "<VALUE>",
"PRIORS_JOIN": "<VALUE>",
"PRIORS_LINE_BOARD": "<VALUE>",
"PRIORS_MAX_BACK_DAY_USD": "<VALUE>",
"PRIORS_STRATEGIES": "<VALUE>",
"PRIORS_STRATEGIES_URL": "<VALUE>",
"RPC_URL": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-priors-agents-priors": {
"command": "npx",
"args": [
"-y",
"@priors/mcp"
],
"env": {
"PRIORS_KEY": "<YOUR_VALUE>",
"PRIORS_KEY_FILE": "<VALUE>",
"PRIORS_AGENT_ID": "<VALUE>",
"PRIORS_MAX_PRICE_USD": "<VALUE>",
"PRIORS_MAX_SPEND_USD": "<VALUE>",
"PRIORS_MAX_BORROW_USD": "<VALUE>",
"PRIORS_MAX_SPEND_DAY_USD": "<VALUE>",
"PRIORS_MAX_BORROW_DAY_USD": "<VALUE>",
"PRIORS_PAY_HOSTS": "<VALUE>",
"PRIORS_JOIN": "<VALUE>",
"PRIORS_LINE_BOARD": "<VALUE>",
"PRIORS_MAX_BACK_DAY_USD": "<VALUE>",
"PRIORS_STRATEGIES": "<VALUE>",
"PRIORS_STRATEGIES_URL": "<VALUE>",
"RPC_URL": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-priors-agents-priors": {
"command": "npx",
"args": [
"-y",
"@priors/mcp"
],
"env": {
"PRIORS_KEY": "<YOUR_VALUE>",
"PRIORS_KEY_FILE": "<VALUE>",
"PRIORS_AGENT_ID": "<VALUE>",
"PRIORS_MAX_PRICE_USD": "<VALUE>",
"PRIORS_MAX_SPEND_USD": "<VALUE>",
"PRIORS_MAX_BORROW_USD": "<VALUE>",
"PRIORS_MAX_SPEND_DAY_USD": "<VALUE>",
"PRIORS_MAX_BORROW_DAY_USD": "<VALUE>",
"PRIORS_PAY_HOSTS": "<VALUE>",
"PRIORS_JOIN": "<VALUE>",
"PRIORS_LINE_BOARD": "<VALUE>",
"PRIORS_MAX_BACK_DAY_USD": "<VALUE>",
"PRIORS_STRATEGIES": "<VALUE>",
"PRIORS_STRATEGIES_URL": "<VALUE>",
"RPC_URL": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-priors-agents-priors": {
"command": "npx",
"args": [
"-y",
"@priors/mcp"
],
"env": {
"PRIORS_KEY": "<YOUR_VALUE>",
"PRIORS_KEY_FILE": "<VALUE>",
"PRIORS_AGENT_ID": "<VALUE>",
"PRIORS_MAX_PRICE_USD": "<VALUE>",
"PRIORS_MAX_SPEND_USD": "<VALUE>",
"PRIORS_MAX_BORROW_USD": "<VALUE>",
"PRIORS_MAX_SPEND_DAY_USD": "<VALUE>",
"PRIORS_MAX_BORROW_DAY_USD": "<VALUE>",
"PRIORS_PAY_HOSTS": "<VALUE>",
"PRIORS_JOIN": "<VALUE>",
"PRIORS_LINE_BOARD": "<VALUE>",
"PRIORS_MAX_BACK_DAY_USD": "<VALUE>",
"PRIORS_STRATEGIES": "<VALUE>",
"PRIORS_STRATEGIES_URL": "<VALUE>",
"RPC_URL": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-priors-agents-priors": {
"command": "npx",
"args": [
"-y",
"@priors/mcp"
],
"env": {
"PRIORS_KEY": "<YOUR_VALUE>",
"PRIORS_KEY_FILE": "<VALUE>",
"PRIORS_AGENT_ID": "<VALUE>",
"PRIORS_MAX_PRICE_USD": "<VALUE>",
"PRIORS_MAX_SPEND_USD": "<VALUE>",
"PRIORS_MAX_BORROW_USD": "<VALUE>",
"PRIORS_MAX_SPEND_DAY_USD": "<VALUE>",
"PRIORS_MAX_BORROW_DAY_USD": "<VALUE>",
"PRIORS_PAY_HOSTS": "<VALUE>",
"PRIORS_JOIN": "<VALUE>",
"PRIORS_LINE_BOARD": "<VALUE>",
"PRIORS_MAX_BACK_DAY_USD": "<VALUE>",
"PRIORS_STRATEGIES": "<VALUE>",
"PRIORS_STRATEGIES_URL": "<VALUE>",
"RPC_URL": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-priors-agents-priors": {
"command": "npx",
"args": [
"-y",
"@priors/mcp"
],
"env": {
"PRIORS_KEY": "<YOUR_VALUE>",
"PRIORS_KEY_FILE": "<VALUE>",
"PRIORS_AGENT_ID": "<VALUE>",
"PRIORS_MAX_PRICE_USD": "<VALUE>",
"PRIORS_MAX_SPEND_USD": "<VALUE>",
"PRIORS_MAX_BORROW_USD": "<VALUE>",
"PRIORS_MAX_SPEND_DAY_USD": "<VALUE>",
"PRIORS_MAX_BORROW_DAY_USD": "<VALUE>",
"PRIORS_PAY_HOSTS": "<VALUE>",
"PRIORS_JOIN": "<VALUE>",
"PRIORS_LINE_BOARD": "<VALUE>",
"PRIORS_MAX_BACK_DAY_USD": "<VALUE>",
"PRIORS_STRATEGIES": "<VALUE>",
"PRIORS_STRATEGIES_URL": "<VALUE>",
"RPC_URL": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| PRIORS_KEY secret | Yes | The private key that owns (or will own) the agent. Required for the local MCP server to sign transactions (pay, borrow, repay) using the agent's wallet. Keep it in the environment or a .env file only. |
| PRIORS_KEY_FILE | No | Absolute path (or ~/) of a file holding the agent wallet's key, read only when nobody but the user can read it; instead of PRIORS_KEY |
| PRIORS_AGENT_ID | No | The ERC-8004 agent id. Set this if the agent id predates v2 or was transferred to you; otherwise the server can use the identity registered for PRIORS_KEY. |
| PRIORS_MAX_PRICE_USD | No | Most one x402 call may cost (default 1.00) |
| PRIORS_MAX_SPEND_USD | No | Most x402 payments may total while the server runs (default 5) |
| PRIORS_MAX_BORROW_USD | No | Most one loan may be (default 25) |
| PRIORS_MAX_SPEND_DAY_USD | No | Most x402 payments may total per UTC day for the agent, across restarts (needs PRIORS_AGENT_ID) |
| PRIORS_MAX_BORROW_DAY_USD | No | Most the agent may borrow per UTC day, across restarts (needs PRIORS_AGENT_ID; 0 turns borrowing off) |
| PRIORS_PAY_HOSTS | No | Comma-separated exact hosts pay_url may pay; any other URL is refused before a request |
| PRIORS_JOIN | No | on: join (registers an ERC-8004 identity for this wallet when it owns none) and first_line (the treasury's first line for it, with PRIORS_BOT_URL); off by default |
| PRIORS_LINE_BOARD | No | on: the line board, signed by this wallet: line_ask and line_take for an agent it owns, and line_offer, line_send and line_back_own for a root it owns; off by default |
| PRIORS_MAX_BACK_DAY_USD | No | Most line line_send and line_back_own may send from this wallet per UTC day, across restarts (read only with PRIORS_LINE_BOARD=on; none by default; 0 sends none) |
| PRIORS_STRATEGIES | No | on: strategies_list and strategy_read, read only: the trading strategies published on Priors' strategy board; off by default |
| PRIORS_STRATEGIES_URL | No | The strategy board read with PRIORS_STRATEGIES=on (default https://test.priors.trade/api/strategies); https, or http for localhost only |
| RPC_URL | No | Comma-separated list of RPC endpoints to try in order. Defaults to the official Robinhood Chain RPC (https://rpc.mainnet.chain.robinhood.com). Backups can serve plain calls but cannot serve event history. |