Pacifica CLI logo

Pacifica CLI

by @2oolkit

Trade Pacifica perpetual futures through CLI commands or 19 MCP tools for market data, orders, positions, and account management.

Install Pacifica CLI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "2oolkit-pacifica-cli": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "@2oolkit/pacifica-cli",
        "pacifica-mcp"
      ],
      "env": {
        "PACIFICA_WALLET_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "PACIFICA_WALLET_ADDRESS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env PACIFICA_WALLET_PRIVATE_KEY=YOUR_VALUE_HERE --env PACIFICA_WALLET_ADDRESS=YOUR_VALUE_HERE --transport stdio 2oolkit-pacifica-cli -- npx -y -p @2oolkit/pacifica-cli pacifica-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 20 tools correctly ().

Overview

@2oolkit/pacifica-cli connects terminal workflows and AI agents to Pacifica, a decentralized perpetual-futures exchange on Solana. Its `pacifica-cli` command handles market data, orders, positions, account settings, and configuration, while `pacifica-mcp` exposes the same functionality through 19 MCP tools. Public market-data operations do not require authentication; trading and account operations use a Solana wallet with a base58-encoded Ed25519 private key. Reach for it when an agent or script needs to inspect Pacifica markets or manage perpetual positions across crypto, forex, commodities, and equities instruments.

Use cases

  • Query Pacifica prices, order books, candles, and funding rates
  • Place and manage perpetual-futures market or limit orders
  • Inspect positions, balances, leverage, and funding history
  • Automate Pacifica trading workflows from scripts or AI agents

Key features

  • 19 MCP tools for Pacifica market data and account operations
  • Market and limit orders with slippage, time-in-force, and reduce-only options
  • Take-profit and stop-loss parameters on market orders
  • Position, balance, trade-history, and funding-history queries
  • Leverage and margin-mode management
  • JSON CLI output for scripting and pipelines

Tools20

What Pacifica CLI lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

8/8 checks healthy over the last 31d

What it can do

From the 20 tools this server returned when we ran it.

Makes network requests · 1Read-only tools · 20
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age235 days
Maintainers1

Observed 2026-11-05 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @2oolkit/pacifica-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads386Package downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed20Callable tools this server registers over MCP.

How Pacifica CLI works

What @2oolkit/pacifica-cli does

@2oolkit/pacifica-cli provides three interfaces for Pacifica: a terminal CLI, an MCP server, and an OpenClaw skill definition. Pacifica is a decentralized derivatives exchange on Solana offering perpetual instruments such as BTC, ETH, SOL, EURUSD, XAU, XAG, NVDA, and GOOGL.

The CLI supports unauthenticated market-data queries, authenticated order management, position inspection, account operations, and configuration. The MCP interface makes these capabilities available to AI agents through 19 tools. The package also includes an OpenClaw skill file for OpenClaw, ClawdBot, and other agent skill platforms.

How it works

Install the package globally with npm. This provides both pacifica-cli and pacifica-mcp. Node.js 20 or newer is required, along with a Solana wallet using an Ed25519 private key encoded in base58 for authenticated operations.

Market commands retrieve instrument information, prices, order books, recent trades, candles, and funding history. Candle requests support standard intervals from one minute through one day. Requests for more than 4,000 bars are split into paginated time windows, then deduplicated and sorted by time.

Order commands create market or limit orders, set time-in-force and slippage options, apply reduce-only behavior, attach take-profit or stop-loss prices, and cancel existing orders. Position and account commands retrieve positions, balances, equity, settings, trade history, and funding payments, while account commands can change leverage and margin mode.

Setup and configuration

Install the package with:

Terminal
npm install -g @2oolkit/pacifica-cli

Initialize credentials interactively with pacifica-cli config init, or set the private key directly with pacifica-cli config set privateKey. The account address is derived during interactive setup. Configuration is stored at ~/.pacifica-cli/config.json with file permissions set to 0600.

For CI/CD, Docker, or MCP configuration, provide PACIFICA_WALLET_PRIVATE_KEY. PACIFICA_WALLET_ADDRESS can also be supplied when using environment-based CLI configuration. An MCP client can pass credentials in its env block, or the MCP process can read the CLI configuration file.

Claude Code can register the server with claude mcp add pacifica -- pacifica-mcp. Claude Desktop, Cursor, and Windsurf can launch the command directly from an MCP configuration, or use npx -y -p @2oolkit/pacifica-cli pacifica-mcp without a global installation.

Tools and capabilities

The MCP server groups its tools as follows:

  • Market data: market information, prices, order books, recent trades, candles, and historical funding.
  • Orders: market and limit order creation, order cancellation, open-order queries, and order history.
  • Positions: open-position queries.
  • Account: account information, settings, trade history, and funding history.
  • Settings: leverage and margin-mode updates.

CLI commands support -o json, allowing results to be piped into scripts or tools such as jq. Examples include retrieving prices as JSON and extracting order IDs from open orders.

Limitations and notes

Pacifica's candle endpoint accepts at most 4,000 bars per request. The CLI can retrieve larger recent-bar counts by making multiple requests, but an explicit start/end range wider than that limit is rejected; use the count option for pagination.

Market-data tools work without wallet authentication, while orders, positions, account queries, and account settings require credentials. Wallet private keys should be passed through the MCP environment or protected CLI configuration rather than exposed in ordinary command output. The package is intended for perpetual-futures workflows on Pacifica and does not describe support for other exchanges.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pacifica CLI

@2oolkit/pacifica-cli is an MCP server that connects AI agents to Pacifica, a decentralized perpetual-futures exchange on Solana. Its main tools retrieve market data, create and cancel orders, inspect positions and account history, and update leverage or margin mode. Market-data tools are public; trading and account tools require a wallet.

Install it globally with `npm install -g @2oolkit/pacifica-cli`, which provides the `pacifica-mcp` command. You can also configure an MCP client to run `npx -y -p @2oolkit/pacifica-cli pacifica-mcp` without a global installation. Node.js 20 or newer is required.

Set `PACIFICA_WALLET_PRIVATE_KEY` in the MCP configuration or run `pacifica-cli config init` to store credentials in the CLI configuration file. The private key must be an Ed25519 Solana key encoded in base58. `PACIFICA_WALLET_ADDRESS` is also supported for environment-based CLI configuration.

Yes, @2oolkit/pacifica-cli works with Cursor through its MCP configuration. Set the server command to `pacifica-mcp`, or use `npx` with the package name, and provide the wallet private key in the configuration environment when authenticated tools are needed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPacifica CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/2oolkit-pacifica-cli?style=directory)](https://allmcps.com/mcp/2oolkit-pacifica-cli)
HTML Embed
<a href="https://allmcps.com/mcp/2oolkit-pacifica-cli"><img src="https://allmcps.com/api/badge/2oolkit-pacifica-cli?style=directory" alt="Pacifica CLI on AllMCPs" /></a>