You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

parsec-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parsec-mcp

MCP server for trading and monitoring prediction markets across Polymarket, Kalshi, Opinion, Limitless, and PredictFun

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
-96.94%
Maintainers
1
Weekly downloads
 
Created
Source

parsec-mcp

MCP server for trading and monitoring prediction markets across Polymarket, Kalshi, Opinion, Limitless, and PredictFun — from any AI assistant.

Search markets, stream live orderbooks, preview and place trades, and manage your portfolio through natural language. Works with Claude Desktop, Cursor, VS Code Copilot, Cline, Windsurf, and any MCP-compatible client.

Quick Start

PARSEC_API_KEY=pk_live_... npx parsec-mcp serve

Get your API key at parsecapi.com.

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "parsec": {
      "command": "npx",
      "args": ["-y", "parsec-mcp", "serve"],
      "env": {
        "PARSEC_API_KEY": "pk_live_..."
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "parsec": {
      "command": "npx",
      "args": ["-y", "parsec-mcp", "serve"],
      "env": {
        "PARSEC_API_KEY": "pk_live_..."
      }
    }
  }
}

VS Code / Copilot

Add to .vscode/mcp.json:

{
  "servers": {
    "parsec": {
      "command": "npx",
      "args": ["-y", "parsec-mcp", "serve"],
      "env": {
        "PARSEC_API_KEY": "pk_live_..."
      }
    }
  }
}

Windsurf / Cline

Add to your MCP configuration:

{
  "mcpServers": {
    "parsec": {
      "command": "npx",
      "args": ["-y", "parsec-mcp", "serve"],
      "env": {
        "PARSEC_API_KEY": "pk_live_..."
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
PARSEC_API_KEYYesYour Parsec API key (pk_live_... or pk_test_...)
PARSEC_API_BASE_URLNoOverride API base URL (default: https://api.parsecapi.com)
PARSEC_DISABLE_WALLET_EXPORTNoSet to 1 to disable the wallet key export tool
PARSEC_MCP_ENABLE_RAWNoSet to 1 to enable the advanced raw API escape hatch

Tools

Composite Tools (Start Here)

High-level tools designed for AI agents — these handle market resolution, multi-step workflows, and formatting automatically.

ToolDescription
parsec.market.find_marketSearch for markets by keyword, parsec_id, or exchange-native ID
parsec.market.get_market_snapshotGet market metadata + orderbook + recent trades in one call
parsec.trade.preview_orderSimulate an order with execution price and balance context
parsec.account.get_trading_setup_statusCheck if the account is ready to trade
parsec.stream.open_market_feedOne-step real-time WebSocket feed setup

Market Data

ToolDescription
parsec.market.list_exchangesList supported exchanges and their status
parsec.market.list_marketsSearch, filter, and resolve markets with cursor pagination
parsec.market.get_orderbookLive bid/ask levels for a market outcome
parsec.market.get_execution_priceEstimate fill price for a hypothetical order
parsec.market.get_priceCurrent mid-market price for an outcome
parsec.market.list_tradesRecent trades for a market
parsec.market.list_eventsList multi-market event groups

Trading

ToolDescription
parsec.trade.create_orderPlace a live order on any exchange
parsec.trade.cancel_orderCancel an open order
parsec.trade.list_ordersList orders with status/exchange filters
parsec.trade.get_orderGet order details by ID
parsec.trade.list_positionsCurrent open positions
parsec.trade.list_fillsExecuted trade fills
parsec.trade.get_balanceExchange balance (total, available, reserved)

Real-Time Streaming

Stream live orderbook snapshots, deltas, and trade activity over WebSocket.

ToolDescription
parsec.stream.open_market_feedOne-step feed setup (recommended)
parsec.stream.connectOpen a WebSocket session
parsec.stream.authAuthenticate a session
parsec.stream.subscribeSubscribe to market feeds
parsec.stream.unsubscribeRemove subscriptions
parsec.stream.resyncRequest orderbook resync
parsec.stream.readRead buffered messages
parsec.stream.closeClose a session

Account & Wallet

ToolDescription
parsec.account.pingCheck API connectivity
parsec.account.get_usageAPI usage stats
parsec.account.get_ws_usageWebSocket usage stats
parsec.account.get_user_activityRecent account activity
parsec.account.onboardComplete account onboarding
parsec.wallet.get_stateWallet and exchange link status
parsec.wallet.export_keyExport wallet private key (sensitive)

Builder (Multi-Tenant)

For platforms building on top of Parsec with per-user isolation.

ToolDescription
parsec.builder.create_userCreate an end-user
parsec.builder.list_usersList all end-users
parsec.builder.get_userGet end-user details
parsec.builder.update_userUpdate end-user profile
parsec.builder.delete_userDelete an end-user (irreversible)
parsec.builder.onboard_userOnboard end-user for trading
parsec.builder.get_poolLiquidity pool status
parsec.builder.get_escrow_configEscrow configuration

Polymarket CTF

Advanced conditional token operations (most users should use create_order instead).

ToolDescription
parsec.ctf.splitSplit USDC into conditional tokens
parsec.ctf.mergeMerge tokens back into USDC
parsec.ctf.redeemRedeem winning tokens after resolution

Example Prompts

Once connected, try asking your AI assistant:

  • "What prediction markets are available about Bitcoin?"
  • "Show me the orderbook for the Trump 2028 market on Polymarket"
  • "What's my Kalshi balance?"
  • "Preview buying 50 Yes contracts on that market"
  • "Open a live feed for the ETH price market"
  • "Am I set up to trade?"

Security

  • API key is passed via environment variable, never in tool calls
  • Sensitive tools (create_order, cancel_order, export_key) are annotated as destructive
  • Wallet export can be disabled globally with PARSEC_DISABLE_WALLET_EXPORT=1
  • Internal endpoints are never exposed through the MCP surface
  • All connections use HTTPS/WSS

Troubleshooting

"PARSEC_API_KEY is required" — Set the environment variable in your MCP client configuration.

Tools not appearing — Restart your MCP client after configuration changes. Check that npx parsec-mcp serve runs successfully in your terminal.

Authentication errors — Verify your API key at parsecapi.com. Test keys (pk_test_...) work in sandbox mode only.

WebSocket session limit — Max 8 concurrent sessions. Close unused sessions with parsec.stream.close.

Development

npm install
npm run build
npm test
npm run check          # build + test + contract tests
npm run eval:smoke     # smoke test harness

License

MIT

Keywords

mcp

FAQs

Package last updated on 09 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts