riv-mcp
v0.4.1Riv MCP: spend authorization and governed trading (place_order, positions, market data, policies).
Values you need
| Variable | What it is | |
|---|---|---|
RIV_API_KEY | required secret | The riv_ credential issued when you connect the agent in the Riv dashboard. |
RIV_API_URL | optional | Riv API base URL. Defaults to http://localhost:3000; use https://riventa.dev for live agents. Default: http://localhost:3000 |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add riv-mcp -e 'RIV_API_KEY=<RIV_API_KEY>' -- npx -y --package=@riv-io/mcp@0.4.1 riv-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"riv-mcp": {
"args": [
"-y",
"--package=@riv-io/mcp@0.4.1",
"riv-mcp"
],
"command": "npx",
"env": {
"RIV_API_KEY": "<RIV_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"riv-mcp": {
"args": [
"-y",
"--package=@riv-io/mcp@0.4.1",
"riv-mcp"
],
"command": "npx",
"env": {
"RIV_API_KEY": "<RIV_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "RIV_API_KEY",
"id": "riv-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"riv-mcp": {
"args": [
"-y",
"--package=@riv-io/mcp@0.4.1",
"riv-mcp"
],
"command": "npx",
"env": {
"RIV_API_KEY": "${input:riv-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.riv-mcp]
command = "npx"
args = ["-y", "--package=@riv-io/mcp@0.4.1", "riv-mcp"]
env = { "RIV_API_KEY" = "<RIV_API_KEY>" }For AI agents
- Ask the user for: RIV_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: authorize, get_activity, place_order, get_positions, get_account_state, get_market_data, cancel_order, close_position, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json