Limitless MCP Server

平台与服务

by joinquantish

MCP server for Limitless Exchange prediction markets on Base

什么是 Limitless MCP Server

MCP server for Limitless Exchange prediction markets on Base

README

Limitless MCP Server

<div align="center"> <h3>Prediction Market Trading on Base via Limitless Exchange</h3> <p>Build AI-powered trading agents for Limitless prediction markets using the Model Context Protocol (MCP)</p>

License: PolyForm Noncommercial Node.js Base Chain

</div>

⚠️ Notice: Quantish is winding down. The Quantish platform (quantish.live) is shutting down. This MCP server is self-hosted and will continue to work independently, but the Quantish team will no longer be maintaining or updating this project. If you're building in the prediction market space and need real-time data infrastructure, check out polynode.dev.


Features

  • Secure Wallet Management

    • Generate new Base wallets with encrypted private key storage
    • Bring Your Own Wallet (BYOW) - Import existing wallets with client-side encryption
    • Private keys are encrypted with AES-256-GCM before storage
  • Full Limitless Market Access

    • Real-time market discovery via Limitless Exchange API
    • Access to all prediction markets: Politics, Sports, Crypto, and more
    • Live orderbook data and price history
    • Semantic search for market discovery
  • Trading Operations

    • Place limit orders with EIP-712 signed authentication
    • Cancel orders (single, batch, or all)
    • Check and set token approvals (USDC, CTF)
    • Position tracking with P&L calculations
  • AI Agent Integration

    • Full MCP (Model Context Protocol) support
    • Works with Claude, Cursor IDE, and other MCP-compatible AI tools
    • 34 pre-built trading tools organized by category
  • Enterprise Security

    • AES-256-GCM encryption for all sensitive data
    • API key authentication with SHA-256 hashing
    • Platform partner system for B2B integrations
    • Rate limiting and request logging

Quick Start

1. Configure MCP (Cursor IDE)

Add to ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "limitless": {
      "url": "https://limitless-mcp-server-production.up.railway.app/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

2. Get Your API Key

Via MCP tool:

json
{
  "tool": "limitless_signup",
  "args": {
    "externalId": "your-unique-id"
  }
}

3. Start Trading

code
"Search for bitcoin prediction markets"
"Buy 10 YES shares at $0.60 on the BTC market"
"Show my current positions"
"Cancel my open orders"

Available MCP Tools (34 Total)

Note: All tool names are prefixed with limitless_ to avoid collisions with other MCPs.

Authentication & Setup (6 tools)

ToolDescription
limitless_signupCreate a new account with a fresh Base wallet
limitless_request_api_keyGet new API key (requires HMAC signature)
limitless_setup_walletGenerate a new Base wallet
limitless_import_walletImport existing wallet (encrypted)
limitless_get_wallet_import_instructionsInstructions for secure wallet export
limitless_import_private_keyDirect private key import

Wallet Information (4 tools)

ToolDescription
limitless_get_wallet_infoGet wallet address and type
limitless_get_wallet_statusFull wallet status with balances
limitless_get_balancesCheck ETH and USDC balances
limitless_get_deposit_addressGet address for funding

Market Discovery (6 tools)

ToolDescription
limitless_get_marketsList active markets with pagination
limitless_search_marketsSemantic search for markets
limitless_get_marketGet market details including venue
limitless_get_orderbookGet order book with bids/asks
limitless_get_price_historyHistorical price data
limitless_get_categoriesList market categories

Trading (8 tools)

ToolDescription
limitless_place_orderPlace a limit order
limitless_cancel_orderCancel a single order
limitless_cancel_all_ordersCancel all orders in a market
limitless_get_ordersList your orders
limitless_check_approvalsCheck token approvals
limitless_set_approvalsSet token approvals
limitless_get_locked_balanceGet USDC locked in orders
limitless_get_quoteEstimate fill price

Positions (4 tools)

ToolDescription
limitless_get_positionsGet active positions with P&L
limitless_get_tradesGet trade history
limitless_get_portfolio_historyFull portfolio history
limitless_sync_positionsSync positions from API

Transfers (3 tools)

ToolDescription
limitless_send_ethSend ETH to another address
limitless_send_usdcSend USDC to another address
limitless_export_private_keyExport wallet private key

API Key Management (3 tools)

ToolDescription
limitless_list_api_keysList your API keys
limitless_create_api_keyCreate a new API key
limitless_revoke_api_keyRevoke an API key

Self-Hosting

Prerequisites

  • Node.js 20+
  • PostgreSQL 15+
  • Base RPC access (mainnet.base.org)

Installation

bash
# Clone the repository
git clone https://github.com/joinQuantish/limitless-mcp.git
cd limitless-mcp

# Install dependencies
npm install

# Copy environment template
cp .env.example .env

# Edit .env with your values (see Environment Variables below)

# Generate Prisma client
npx prisma generate

# Push database schema
npx prisma db push

# Build and start
npm run build
npm start

Environment Variables

Create a .env file with:

bash
# Database (PostgreSQL)
DATABASE_URL="postgresql://user:password@host:5432/limitless_mcp?schema=public"

# Encryption (generate with: openssl rand -hex 32)
ENCRYPTION_KEY="your-64-character-hex-encryption-key-here"

# Blockchain - Base L2
BASE_RPC_URL="https://mainnet.base.org"

# Limitless Exchange API
LIMITLESS_API_URL="https://api.limitless.exchange"

# Server
PORT=3003
NODE_ENV=production

# Admin API Key (generate with: openssl rand -hex 32)
ADMIN_API_KEY="your-admin-api-key-here"

# Optional: Bot signing secret for returning user verification
BOT_SIGNING_SECRET=""

Docker Deployment

bash
# Build the image
docker build -t limitless-mcp .

# Run the container
docker run -d \
  -p 3003:3003 \
  -e DATABASE_URL="postgresql://..." \
  -e ENCRYPTION_KEY="..." \
  -e ADMIN_API_KEY="..." \
  -e BASE_RPC_URL="https://mainnet.base.org" \
  -e LIMITLESS_API_URL="https://api.limitless.exchange" \
  -e NODE_ENV=production \
  limitless-mcp

Railway Deployment

bash
# Install Railway CLI
npm install -g @railway/cli

# Login and initialize
railway login
railway init

# Add PostgreSQL via Railway dashboard

# Set environment variables
railway variables set DATABASE_URL="postgresql://..."
railway variables set ENCRYPTION_KEY="$(openssl rand -hex 32)"
railway variables set ADMIN_API_KEY="$(openssl rand -hex 32)"
railway variables set BASE_RPC_URL="https://mainnet.base.org"
railway variables set LIMITLESS_API_URL="https://api.limitless.exchange"
railway variables set NODE_ENV="production"

# Deploy
railway up

API Reference

Health Check

bash
curl https://your-server/health

Response:

json
{
  "status": "healthy",
  "timestamp": "2026-01-17T12:00:00.000Z",
  "version": "1.0.0",
  "service": "limitless-mcp",
  "database": "connected",
  "environment": "production"
}

MCP Endpoint

bash
# List available tools
curl -X POST https://your-server/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# Call a tool (authenticated)
curl -X POST https://your-server/mcp \
  -H "Content-Type: application/json" \
  -H "x-api-key: pk_limitless_..." \
  -d '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"tools/call",
    "params":{
      "name":"limitless_get_balances",
      "arguments":{}
    }
  }'

Market Data API

bash
# Get active markets
curl "https://your-server/api/markets?limit=10&page=1"

# Search markets
curl "https://your-server/api/markets/search?query=bitcoin&limit=5"

# Get market details
curl "https://your-server/api/markets/your-market-slug"

# Get orderbook
curl "https://your-server/api/markets/your-market-slug/orderbook"

Security Architecture

<details> <summary>Click to expand security details</summary>

Encryption at Rest

All sensitive data is encrypted using AES-256-GCM:

  • Private keys encrypted before database storage
  • Session tokens encrypted with unique IVs
  • API secrets encrypted (only SHA-256 hash stored for lookup)

API Key Security

code
API Key Format: pk_limitless_<32 base64url chars>
API Secret Format: sk_limitless_<43 base64url chars>
  • Keys are hashed with SHA-256 before storage (never stored in plaintext)
  • Secrets are encrypted with AES-256-GCM
  • Timing-safe comparison using crypto.timingSafeEqual

Platform Isolation (B2B)

For platform partners:

  • Platform admin keys: plt_limitless_* / psk_limitless_*
  • All queries scoped by platformId at database level
  • Activity logging for audit trail
  • User limits enforced per platform

Rate Limiting

  • 60 requests/minute per API key (general)
  • 30 requests/minute for user listing (platform admin)
  • 5 requests/hour for platform registration
</details>

Secure Wallet Import (BYOW)

Import your existing MetaMask/hardware wallet securely:

Step 1: Export Your Private Key

In MetaMask: Settings > Security > Export Private Key

Step 2: Encrypt Locally

javascript
const crypto = require('crypto');

const privateKey = 'YOUR_PRIVATE_KEY_WITHOUT_0x_PREFIX';
const password = 'YourSecurePassword123!'; // min 12 chars

const salt = crypto.randomBytes(32);
const iv = crypto.randomBytes(16);
const derivedKey = crypto.scryptSync(password, salt, 32, { N: 16384, r: 8, p: 1 });

const cipher = crypto.createCipheriv('aes-256-gcm', derivedKey, iv);
let encrypted = cipher.update(privateKey, 'utf8', 'hex');
encrypted += cipher.final('hex');
const authTag = cipher.getAuthTag().toString('hex');

console.log({
  encryptedKey: `${encrypted}:${authTag}`,
  salt: salt.toString('hex'),
  iv: iv.toString('hex'),
  publicKey: 'YOUR_WALLET_ADDRESS'
});

Step 3: Import to SDK

json
{
  "tool": "limitless_import_wallet",
  "args": {
    "encryptedKey": "...",
    "salt": "...",
    "iv": "...",
    "publicKey": "0x...",
    "password": "YourSecurePassword123!"
  }
}

Security Note: Your raw private key NEVER leaves your machine. Only the encrypted bundle is sent to our servers, and we cannot decrypt it without your password.


Related Resources

ResourceURL
Limitless Exchangehttps://limitless.exchange
Limitless API Docshttps://api.limitless.exchange/api-v1
Base Chain Explorerhttps://basescan.org
Base USDC Contract0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

License

PolyForm Noncommercial 1.0.0 © Quantish


Support


<div align="center"> <sub>Built with precision by <a href="https://quantish.live">Quantish</a></sub> </div>

常见问题

Limitless MCP Server 是什么?

MCP server for Limitless Exchange prediction markets on Base

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描123.0k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描123.0k

邮件模板

by alirezarezvani

Universal
热门

快速搭建生产可用的事务邮件系统:生成 React Email/MJML 模板,接入 Resend、Postmark、SendGrid 或 AWS SES,并支持本地预览、i18n、暗色模式、反垃圾优化与追踪埋点。

面向营销与服务场景,快速搭建高质量邮件模板,省去反复设计与切图成本,成熟度和社区认可都很高。

平台与服务
未扫描12.5k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
84.2k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
38.1k

评论