Limitless MCP

Limitless MCP

An MCP server that combines both subgraphs with the Limitless REST API for market names and metadata. Every tool queries the subgraphs for on-chain data. Tools (18) Tool Description get_global_stats Combined protocol stats across both market types get_market_analytics Full market detail — on-chain stats + metadata search_markets Keyword/category search with subgraph enrichment get_market_trades T

Category
访问服务器

README

Limitless Subgraphs + MCP Server

Subgraphs and MCP server for Limitless Exchange prediction markets on Base.

Why Subgraphs?

The Limitless REST API is useful for market metadata (titles, descriptions, categories) but has significant limitations for analytics:

  • Rate limited — max 2 concurrent requests, 300ms minimum delay between calls, 429s on bursts
  • No historical aggregation — no way to query total protocol volume, trade counts over time, or cross-market analytics
  • No on-chain depth — the API doesn't expose individual trade fills, position balances, splits/merges/redemptions, or resolution payouts

Subgraphs solve all of this. They index every on-chain event into a queryable GraphQL API with no rate limits, full historical data, and flexible aggregation. The MCP server combines both — subgraphs for the heavy analytics, REST API for market names and metadata.

Why market names aren't in the subgraphs

Market titles and descriptions are stored off-chain in the Limitless database — they are not emitted in any on-chain event. Unlike Polymarket, which uses UMA's QuestionInitialized event to embed question text in ancillaryData on-chain, Limitless uses a GnosisSafe multisig as the oracle address. The multisig calls prepareCondition directly on the CTF contract with no accompanying event that carries the question text. The questionId in the CTF's ConditionPreparation event is a bytes32 hash, not readable text.

This means there is no on-chain source a subgraph can index for market names. The MCP server bridges this gap by joining subgraph data (via conditionId) with the Limitless REST API for titles and metadata.

Subgraphs

Two subgraphs indexing different exchange venues on the same CTF (Conditional Tokens Framework):

Subgraph What it indexes
limitless-simple-markets Binary Yes/No markets — CTF Exchange v1/v2/v3
limitless-negrisk-markets Multi-outcome category markets — NegRisk Exchange v1/v2/v3

Both share the same CTF contract (0xC9c9...) for conditions, positions, splits, merges, and redemptions. Each indexes its own set of exchange contracts for markets and trades.

Entities

  • Condition — prepared markets with oracle, resolution status, payouts
  • Market / NegRiskMarket — exchange-registered markets with volume, trade counts, fees
  • Trade (immutable) — individual order fills with maker/taker, price, USD amounts
  • UserPosition — per-user token balances and PnL
  • Split / Merge / Redemption (immutable) — CTF liquidity events
  • User — aggregated trader stats
  • MarketDailySnapshot / GlobalDailySnapshot — daily time series
  • GlobalStats — protocol-wide singleton

Contracts

Simple Markets:

Contract Address Start Block
CTF 0xC9c98965297Bc527861c898329Ee280632B76e18 15,916,136
Exchange V1 0xa4409D988CA2218d956BeEFD3874100F444f0DC3 26,043,405
Exchange V2 0xF1De958F8641448A5ba78c01f434085385Af096D 39,507,768
Exchange V3 0x05c748E2f4DcDe0ec9Fa8DDc40DE6b867f923fa5 39,598,606

NegRisk Markets:

Contract Address Start Block
CTF 0xC9c98965297Bc527861c898329Ee280632B76e18 15,916,136
NegRisk Exchange V1 0x5a38afc17F7E97ad8d6C547ddb837E40B4aEDfC6 28,018,020
NegRisk Exchange V2 0x46e607D3f4a8494B0aB9b304d1463e2F4848891d 39,508,390
NegRisk Exchange V3 0xe3E00BA3a9888d1DE4834269f62ac008b4BB5C47 39,598,827

Example Queries

# Global stats
{
  globalStats(id: "0x73696d706c65") {
    totalMarkets resolvedMarkets totalTradesCount
    totalVolumeUSD totalFeesUSD totalUsers
  }
}

# Recent trades with market info
{
  trades(first: 10, orderBy: timestamp, orderDirection: desc) {
    type maker taker amountUSD price venue timestamp
    market { id tradesCount volumeUSD }
  }
}

# User positions
{
  userPositions(where: { user: "0x..." , balance_gt: "0" }) {
    tokenId balance netCostUSD realizedPnlUSD
    condition { id resolved payoutNumerators }
  }
}

MCP Server

An MCP server that combines both subgraphs with the Limitless REST API for market names and metadata. Every tool queries the subgraphs for on-chain data.

Tools (18)

Tool Description
get_global_stats Combined protocol stats across both market types
get_market_analytics Full market detail — on-chain stats + metadata
search_markets Keyword/category search with subgraph enrichment
get_market_trades Trade feed for a specific market
get_market_daily_snapshots Daily volume/trades/fees for a market
get_market_positions Top position holders for a market
get_market_lifecycle Creation → trading → resolution lifecycle
get_trader_profile Trader stats merged across both subgraphs
get_top_traders Leaderboard by volume, trades, or fees
get_trader_trades Trader's recent trades with market names
get_trader_positions Trader's portfolio with balances and PnL
get_daily_protocol_stats Daily time series across both market types
compare_market_types Simple vs NegRisk side-by-side comparison
get_liquidity_events Splits, merges, and redemptions feed
get_recent_activity Unified activity feed (trades + liquidity events)
get_conditions Browse conditions with resolution status
get_subgraph_schema GraphQL schema introspection
query_subgraph Raw GraphQL escape hatch

Setup

cd mcp-server
npm install
npm run build

Claude Code Config

{
  "mcpServers": {
    "limitless": {
      "command": "node",
      "args": ["/path/to/limitless-subgraphs/mcp-server/build/index.js"],
      "env": {
        "GRAPH_API_KEY": "your_graph_api_key",
        "LIMITLESS_API_KEY": "lmts_your_key_here"
      }
    }
  }
}

API Keys

  • GRAPH_API_KEY (required) — needed to query the subgraphs via The Graph. Get one at thegraph.com/studio/apikeys
  • LIMITLESS_API_KEY (optional) — enables market name/metadata enrichment from the Limitless REST API. Without it, market browsing and search still work (public endpoints). Generate one at limitless.exchange → profile menu → Api keys. Key format: lmts_.... Pass via X-API-Key header. See the Limitless API docs for full details.

Note: The Limitless REST API is rate limited to 2 concurrent requests with 300ms minimum delay. The subgraphs have no such limits, which is why the MCP routes all analytics queries through them and only uses the REST API for metadata.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选