ocean-agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ocean-agentOpen a long on ETH with a 3% stop and 2% risk."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ocean-agent
English ยท ํ๊ตญ์ด
๐ Website: oceanagent.vercel.app ยท PyPI: ocean-agent
Tell your AI to trade. An MCP server for Pacifica that turns natural language into correct, risk-sized perpetual futures orders, plus a 24/7 autonomous trading entity governed by a policy file you control.
uvx ocean-agent # no install neededโ ๏ธ This places real orders with real money. Read the disclaimer before connecting an account.
Built entirely on Pacifica. Calls the Pacifica REST API directly with the same Ed25519 agent-key signing the official tooling uses, no npm dependency.
Why this instead of raw API access
The official Pacifica MCP exposes the API as-is: your AI must compute exact prices and sizes itself, and a price that isn't a multiple of the market's tick size is rejected by the exchange. ocean-agent adds the layer above that:
Raw API / official MCP | ocean-agent | |
Order prices | AI computes exact values | Say "3% stop", tick/lot/min-order corrected automatically |
Position sizing | Manual | Risk-based (fixed % of capital at risk per trade) |
Safety | None | Two-step confirm gate on every money-moving tool |
Statistics | None | Measured win rates and expected value, not textbook theory |
Related MCP server: asterdex-mcp-server
MCP tools
Market & analysis
analyze_chart, multi-timeframe indicator snapshot with measured hit rates per signal on that specific coin and timeframe. Says "no edge detected" when there isn't one.top_setups, live ranking of statistically-proven setups (EV ร win rate ร sample confidence), with entry, stop, target and leveragemarket_context, Fear & Greed regime readscan_funding, every market ranked by funding APRlearned_winrates/learned_combos, win-rate database built from live observation, including multi-signal combinationsreview_predictions, past calls graded against what actually happened
Trading
open_with_bracket, entry plus exchange-native TP/SL in one call. The stops live on the exchange, so they fire even with your machine off.protect_position, retrofit native TP/SL onto any open positionopen_funding_position/close_funding_position, delta-neutral funding carry (spot buy + perp short) executed atomically as a batchplan_oi_hedge, sizes an OI-farming position with its cross-exchange hedge, fee and funding math includedopen_pacifica_leg,check_position,account_status
Print (experimental, uses an endpoint Pacifica has not documented; may change without notice)
print_quote, live premium, implied volatility and liquidation priceprint_order/print_status/print_closeevaluate_print, statistical verdict on whether a Print offer is worth it: fill probability, average overshoot, and the breakeven APY that would compensate for it
Autonomous trading entity
A self-directed trader governed by policy.yaml, a delegation contract. It
cannot act outside those bounds.
This is a separate always-on process, not an MCP tool. An MCP server only runs when your AI client calls it; a trader that must hold positions and manage stops around the clock needs its own process. Start it deliberately, and it keeps running whether or not any AI is connected.
python -m ocean_agent.autonomous --init # create policy.yaml to edit
python -m ocean_agent.autonomous --dry # decide, but place no orders
python -m ocean_agent.autonomous # run continuously
python -m ocean_agent.autonomous --once # single cycle
python -m ocean_agent.autonomous --report # performance summaryRead policy.yaml before the first real run, capital, leverage cap, risk per
trade and the hard-stop threshold all live there. Start with --dry on testnet.
Each cycle it reads the market, grades what it learned, manages open positions, and enters only setups that clear every gate.
Portfolio buckets, capital split across directional trading, funding carry and a cash reserve, rebalanced every cycle.
Position aftercare, moves the stop to breakeven once a trade is ahead, trails it as profit grows, and takes partial profit at target. Stops only ever move in your favour.
Liquidity gate, skips markets where your own order would be a large share of daily volume. Thin books are the real hazard: an order that only partly fills, and a stop that cannot be executed at its price.
Net-exposure limit, caps how one-directional the book can get, so a single market reversal cannot hit every position at once.
Self-remeasurement, this is the actual learning engine. On a schedule the bot re-measures the full matrix of coins ร timeframes ร signals and updates which timeframes it trades and which signals it trusts. Regimes change: in one measurement the 8h timeframe showed no edge at all; weeks later it was the best-performing band. Fixed parameters go stale, so they are not fixed.
python -m ocean_agent.rematrix # remeasure now
python -m ocean_agent.rematrix --show # what it currently believesAdaptation, signals that lose in live grading are suspended, size is cut during drawdown and restored on recovery. Parameters adapt within policy bounds; the bot never rewrites its own code.
Final stop, a single hard halt at catastrophic loss. Otherwise it does not stop, it adapts.
Setup
One command, installs everything (uv, Python, dependencies) and registers the server with Claude Desktop. It asks two questions: wallet address and agent key.
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://oceanagent.vercel.app/install.ps1 | iex"
# macOS / Linux
sh -c "$(curl -LsSf https://oceanagent.vercel.app/install.sh)"Or set up manually:
Install uv:
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | shCreate an agent wallet key at app.pacifica.fi/apikey. API keys can trade but cannot withdraw funds, and you can revoke them at any time.
Put it in
.env:
ADDRESS=your_main_wallet_address
PACIFICA_API_KEY=your_agent_wallet_key
PACIFICA_BASE_URL=https://api.pacifica.fiAs written this trades live on mainnet with real funds. Remove the
PACIFICA_BASE_URL line to practice on testnet first (testnet uses separate
keys: ADDRESS_TESTNET, PACIFICA_API_KEY_TESTNET).
Point your MCP client at it:
{
"mcpServers": {
"ocean-agent": {
"command": "uvx",
"args": ["ocean-agent@latest"],
"env": { "PACIFICA_ENV_FILE": "/absolute/path/to/.env" }
}
}
}Restart your AI client, the first launch downloads everything automatically.
Check your setup:
uv run --with ocean-agent python -m ocean_agent.doctorAny python -m ocean_agent... command in this README runs the same way,
prepend uv run --with ocean-agent.
Safety
API keys are trading-only, this software cannot move your funds out
Every order tool previews first and executes only on explicit confirmation
Testnet and mainnet keys are kept separate
The autonomous entity acts only within
policy.yaml
Risk
This is trading software. Leveraged perpetual futures can lose more than the margin you post. Measured win rates come from historical data and are regime-dependent, an edge that held for months can vanish when the market changes character. Nothing here is financial advice. Run it on testnet until you understand exactly what it does, and only risk what you can afford to lose.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA Model Context Protocol (MCP) server for the Hyperliquid decentralized exchange, enabling AI assistants to perform trading operations, manage accounts, and retrieve market data.3MIT
- Alicense-qualityCmaintenanceA comprehensive MCP server for Aster DEX perpetual futures trading, enabling AI agents to access real-time market data, perform institutional-grade analysis, execute orders, and run automated trading strategies.1MIT
- Alicense-qualityCmaintenanceAgent-native, self-hosted MCP server for crypto trading and DeFi management. Enables agents to query balances, execute trades, and manage positions with a policy engine and secure key storage.7Apache 2.0
- Flicense-qualityDmaintenanceMCP server that exposes Polymarket prediction markets via CLI wrapper. Enables AI agents to discover markets, check prices, and place trades programmatically.
Related MCP Connectors
MCP server for Gainium โ manage trading bots, deals, and balances via AI assistants
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for generating rough-draft project plans from natural-language prompts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/halulume/ocean-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server