How to integrate Surf MCP with Hermes

Connect Hermes to Surf MCP. Track bitcoin price and daily market movement, compare tesla and nvidia stock performance, and more using natural language, with authentication handled for you.

Surf logoSurf
Api Key

Surf is a unified API for financial, crypto, prediction-market, equity, on-chain, news, search, and web data. It gives developers one reliable way to access broad, AI-ready data sources.

122 Tools

Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your Surf account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

Also integrate Surf with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,500+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating Surf with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Surf

Ask your agent to connect to Surf, or simply request any Surf-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Surf connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Surf or request any Surf-related task. It will prompt you to authenticate and authorize access.

5. Done!

What is the Surf MCP server, and what's possible with it?

The Surf MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Surf account. It provides structured and secure access so your agent can perform Surf operations on your behalf.

Way Forward

With Surf connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS

Supported Tools

Every Surf action and event your agent gets out of the box.

Cancel Asynchronous Blockchain SQL Job

Durably request cancellation of an asynchronous blockchain SQL job and return its current state.

Submit Asynchronous Blockchain SQL Job

Submit a read-only ClickHouse SQL query for durable background execution and return its stable job and query identifiers immediately.

DEX Token OHLCV Price

Return USD DEX-pool-weighted OHLCV bars for one token identified by chain and contract address.

Equity Balance Sheet

Return standardized balance-sheet periods for a US-listed equity.

Equity Price Candles

Return historical OHLCV candles and the latest traded price for a US-listed equity.

Equity Cash Flow

Return paginated standardized cash-flow periods for a US-listed equity.

Equity Profile

Return a standardized stock company profile or ETF product profile, including its business description and source-update metadata.

Equity Financial Metrics

Return paginated standardized financial ratios, growth measures, per-share values, and valuation metrics for a US-listed equity.

Equity Income Statement

Return standardized income-statement periods for a US-listed equity.

Latest Equity Filings

Return the most recently accepted periodic SEC filings across US equities.

Latest Equity Financials

Return the most recently published current-serving TTM financials across US equities, optionally filtered by a minimum current market capitalization.

Equity Metadata

Return lightweight identity, logo, and latest USD price metadata for one or more US-listed stocks or ETFs.

Equity Financial Overview

Return a paginated financial overview for a US-listed equity.

Exchange Order Book Depth

Return bid and ask order-book levels for an exchange market, including spread, spread percentage, mid-price, and total bid and ask depth.

Exchange Funding Rate History

Return historical funding rate records for a perpetual contract.

Exchange OHLCV Candlesticks

Return exchange OHLCV candlesticks with high, low, and total-volume statistics for the returned period.

Exchange Long/Short Ratio History

Return historical long/short ratios for a perpetual contract.

Exchange Trading Pairs

Return trading pairs available on an exchange, including base and quote currencies, market type, active status, and default fee rates.

Exchange Perpetual Contract Snapshot

Return a perpetual futures snapshot for a trading pair, including current funding, open interest, mark price, and index price data.

Exchange Ticker Price

Return the real-time ticker for an exchange trading pair, including the last price, best bid and ask, 24-hour high, low, volume, and price change.

Fund Profile Detail

Return a crypto VC fund's full profile, including its description, jurisdiction, unique invested-project count, links, X accounts, team members, and recent research.

Account Portfolio

Return a Hyperliquid wallet's point-in-time portfolio across perpetuals, spot, vaults, and HYPE staking.

Market Candles

Return Hyperliquid market OHLCV candles ordered by open time ascending for a required half-open [from_, to) window.

Open & Recent Orders

Return a wallet's live resting orders and recent terminal orders.

Trading Performance

Return a wallet's lifetime funding-excluded realized trading performance, live open positions, unrealized PnL, and perpetual clearinghouse equity.

Open Positions

Return a wallet's open Hyperliquid perpetual positions with leverage, unrealized PnL, ROE, funding, liquidation risk, and its cross-margin summary.

Closed Trade Funding and Leverage

Return immutable funding and leverage context for one closed Hyperliquid trade using the composite key from the trades action.

Closed Trades Aggregate

Aggregate a wallet's closed Hyperliquid trades by UTC day, symbol, direction, notional-size tier, or holding-time tier.

Kalshi Open Interest History

Return daily open-interest history for one Kalshi market over a selected time window.

Kalshi Price History

Return hourly or daily OHLC price history for one Kalshi market, or the latest price from recent trades.

Kalshi Volume History

Return daily notional trading-volume history for one Kalshi market over a selected time window.

ETF Flow History

Return daily spot ETF flow history for BTC, ETH, XRP, SOL, or HYPE, including net USD flow, closing token price, settlement status, and per-ticker flow breakdowns.

Fear & Greed Index History

Return Bitcoin Fear and Greed Index history, including each 0-100 index value, its classification, and the Bitcoin price at that time.

Futures Market Overview

Return a single ranked snapshot of futures market data across all tracked tokens, including open interest, funding rate, long/short ratio, and 24-hour volume.

Liquidation Chart

Return time-bucketed aggregate long- and short-side liquidation volumes for a token on a specific exchange and interval.

Liquidation by Exchange

Return a single ranked snapshot of total, long-side, and short-side liquidation volumes by exchange for a token and aggregation window.

On-Chain Indicator

Return daily on-chain indicator history for BTC or ETH, including NUPL, SOPR, MVRV, Puell Multiple, NVM, NVT, NVT Golden Cross, and exchange-flow metrics.

Options Market Data

Return options market data for one supported token, including open interest, 24-hour volume, put/call ratio, and max pain price by exchange.

Token Price History

Return historical prices for one listed token in a selected quote currency.

Technical Indicator

Return a technical indicator for a trading pair on a given exchange and candlestick interval.

Public Sale / Crowdsale

Return public sale information for a project resolved by Surf UUID, name, or token symbol, including sale type, status, dates, token price, funds raised, supply allocation, launchpad, and all-time-high ROI.

Token Generation Event

Return Token Generation Event status for a project resolved by Surf UUID, name, or token symbol, including the current status, last status-change time, and launch exchanges.

News Article Detail

Return the full content and metadata of one news article by an ID obtained from Surf news feed or search results.

DEX Protocol Activity

Return active traders, trade count, and USD volume for one DEX protocol or router contract as either a total aggregate or a newest-first daily series.

Current Onchain Gas Price

Return the current gas price for one supported EVM chain in both wei and Gwei.

On-Chain Table Schema

Discover logical on-chain tables and columns before writing SQL or structured queries.

Get Asynchronous Blockchain SQL Job

Return durable job status, elapsed time, ClickHouse progress counters, retry semantics, and result links for an asynchronous blockchain SQL job.

Download Asynchronous Blockchain SQL Results

Return a completed asynchronous blockchain SQL job's retained results as structured JSON or a downloadable CSV.

Transaction Details by Hash

Look up one EVM transaction by chain and hash.

Polymarket Open Interest History

Return daily open-interest history in USD for one Polymarket market over a selected time window.

Polymarket OHLCV Candlesticks

Return OHLCV candlesticks for a Polymarket market for price-chart and bar visualizations.

Polymarket Price History

Return hourly or daily outcome-price history for one Polymarket market, or its latest price snapshot.

Polymarket Volume History

Return aggregate Polymarket trading volume in USD and trade count as a time series for volume-trend analysis.

Polymarket Volume Split (YES/NO)

Return Polymarket trading volume split into YES and NO outcome sides for hourly, daily, or weekly intervals, including total volume and trade count.

Aggregated Project Detail

Return a crypto project's profile with selectable overview, token market, legacy tokenomics, funding, team, contract, social, and token-generation sections.

Signal Detail

Return one project signal card by Surf token UUID or project slug, including its score, classified state, score dimensions, market data, and summaries.

Token Transfer Activity Summary

Return aggregate transfer activity for a token contract over a selected window, including transfer count, approximate unique senders and receivers, token amount, activity bounds, and USD-enrichment coverage.

Token Unlock Schedule

Return token unlock time-series with cumulative amounts, allocation breakdowns, total supply denominator, and unlocked-supply percentage.

Aggregated Wallet Detail

Return a wallet's cross-chain portfolio with selectable balance, token, label, NFT, and approval sub-resources, plus its per-chain USD breakdown.

Get Wallet Labels Batch

Return entity names, entity types, and labels for up to 100 wallet addresses in one request.

Wallet Net Worth History

Return about 24 hours of total wallet net worth in USD at five-minute intervals for one EVM address.

Web Page Fetch

Fetch one web page and convert its content to clean markdown, optionally limiting extraction, removing elements, or waiting for dynamic content with CSS selectors.

X Tweets by IDs

Return normalized X posts by numeric ID.

Airdrop Activities

Return one page of airdrop activities with project, reward, status, fundraising, and social metrics.

ETF Holdings

Return one page from a stored ETF or index-fund portfolio snapshot plus its immediately previous snapshot, ordered newest to oldest.

Equity SEC Filings

Return one page of verified periodic SEC filings for a US equity, including canonical filing metadata, document URLs, statement coverage, and provenance.

Equity Listings

Return one page of current verified active stock listings for the issuer resolved from the requested ticker.

Equity Segment Financials

Return one page of provider-reported product and operating or geographic segment facts for a US-listed equity.

Exchange Historical Candles

Return one page of persisted OHLCV candles for a covered Bithumb, Upbit, HashKey, bitFlyer, Coinone, or Korbit spot market.

Exchange Market Coverage

Return one page of covered spot markets on Bithumb, Upbit, HashKey, bitFlyer, Coinone, and Korbit with ticker metrics, candle availability, technical score, and data status.

Fund Portfolio

Return one page of a fund's investment rounds, sorted by the selected field.

Fund Ranking

Return one page of crypto VC funds ranked by fund tier or number of invested projects, including up to five top portfolio projects per fund.

Fills

Return one page of a wallet's individual Hyperliquid fills with realized PnL, fees, liquidity direction, and an opaque cursor.

Trader Leaderboard

Return one page of Hyperliquid traders ranked by PnL, win rate, or volume, with trade activity, account age, human-likeness, and market filters.

Closed Trades

Return one page of a wallet's closed Hyperliquid position lifecycles, newest close first, with entry and exit prices, size, hold time, fees, and realized PnL.

Kalshi Events

Return one page of Kalshi events with their nested markets, optionally filtered by event ticker.

Kalshi Markets

Return one page of Kalshi markets with status, payout type, volume, and open interest.

Kalshi Orderbook History

Return one page of historical YES-side bid and ask snapshots for a Kalshi market.

Kalshi Trades

Return one page of real-time individual trades for a Kalshi market, with taker side, outcome prices, notional volume, and timestamp.

Exchange Flow Exchanges

Return one page of Surf's curated aggregate and high-coverage individual exchange filters for BTC or ETH exchange-flow metrics.

Large Liquidation Orders

Return one offset page of individual large liquidation orders above a USD threshold.

Exchange Listing Events

Return one page of historical exchange listing and delisting events, filtered by date range and optionally by token, exchange, product, or event type.

Token Rankings

Return one page of tokens ranked by market capitalization, 24-hour price change, or 24-hour trading volume, optionally filtered by token category.

Cross-Platform Daily Comparison (Polymarket <> Kalshi)

Return one page of daily volume and open-interest comparisons for a specific matched Polymarket and Kalshi market pair.

Cross-Platform Prediction Market Matcher

Return one page of matching Polymarket and Kalshi markets with match confidence, activity, volume, current probabilities, and price spread.

Crypto News Feed

Return one page of crypto news from major sources, optionally filtered by publisher, project, or publication time.

Bridge Protocol Ranking

Return one page of bridge protocols ranked by USD transfer volume over a selected time range, including transfer counts.

Yield Pool Ranking

Return one page of individual DeFi yield pools ranked by APY or TVL, optionally filtered by protocol.

Polymarket Events

Return one page of Polymarket events with aggregated status and volume plus their nested markets and outcomes, filtered by event slug.

Polymarket Leaderboard

Return one page of Polymarket traders ranked by realized PnL, trading volume, or trade count, including aggregate position outcomes.

Polymarket Markets

Return one page of Polymarket markets with outcomes, status, volume, and condition identifiers, filtered by market slug.

Polymarket Orderbook History

Return one page of historical bid and ask depth snapshots for a Polymarket token.

Polymarket Wallet Positions

Return one page of open Polymarket positions for a specific proxy wallet, including market identifiers, share size, valuation, and profit and loss.

Polymarket Smart Money

Return one page of Polymarket smart-wallet analytics.

Polymarket Trades

Return one page of Polymarket trades or wallet activity, filtered by market, wallet, outcome, minimum amount, or time range.

Prediction Market Analytics

Return one page of prediction-market analytics with daily trends, top markets by open interest, momentum distribution, and per-market momentum signals.

Market Correlations

Return one page of 30-day Pearson price-correlation pairs between Polymarket markets in one category.

Project AI News

Return one page of AI-generated news and signal analysis for a project identified by Surf UUID or fuzzy name.

Project DeFi Metrics

Return one page of historical metric points for a single DeFi protocol.

DeFi Protocol Ranking

Return one page of DeFi protocols ranked by TVL, fees, revenue, volume, or users.

Signal Projects

Return one page of ranked project signal cards for a 24-hour or 7-day window.

Top Token Signals

Return one page of daily or weekly top-token project signal cards with latest price, price changes, dimension scores, compact signals, and AI summaries.

Token DEX Trade History

Return one page of recent DEX swaps for a token contract on Ethereum, Base, BSC, Arbitrum, or Tron.

Token Holders

Return one page of top token holders for a contract address.

Top Transfer Counterparties

Return one page of a token's top receivers or senders over a selected window, ranked by transfer count, token amount, or USD value.

Token Transfer History

Return one page of recent transfers for a token contract on Ethereum, Base, Solana, Tron, BSC, or Arbitrum.

Wallet Transaction History

Return one page of a wallet's on-chain transactions, classified by type and valued in the chain's native token.

Wallet DeFi Protocol Positions

Return one page of a wallet's DeFi protocol positions across lending, staking, liquidity pools, and farming, including token breakdowns and USD values.

Wallet Transfer History

Return one page of ERC-20 or SPL token transfers involving a wallet, with token identity, USD value, and incoming or outgoing flow.

Preflight Blockchain SQL Query

Validate and estimate a read-only ClickHouse SELECT or WITH query without executing it.

Blockchain Structured Query

Query an on-chain table with structured fields, filters, sorting, and row limits instead of raw SQL.

Blockchain SQL Query

Synchronously run one read-only ClickHouse SELECT or WITH query against Surf's blockchain tables with a 30-second timeout.

Airdrop Search

Return one page of airdrop opportunities filtered by project keyword, lifecycle phase, reward type, task type, or open-task availability.

Project Event Search

Return one page of project events for a Surf project identified by exact UUID or fuzzy name, optionally filtered by event type.

Fund Search

Return one page of crypto investment funds matching a name keyword, including fund identity, tier, type, logo, and top invested projects.

Fundraising Event Search

Return one page of source-backed fundraising and token-sale events, or the latest fundraising timeline when no query is provided.

News Article Search

Return one page of crypto news articles matching a keyword or phrase, ranked by relevance with matching fragments highlighted when available.

Search Prediction Markets

Return one page of Polymarket and Kalshi markets with identifiers, status, volume, open interest, trade counts, current probability, and smart-money signals.

Project Search

Return one page of crypto projects matching a project name or token ticker.

Token Symbol Resolution

Resolve an exact token ticker symbol to one page of likely contract-address candidates on supported chains.

Wallet Search

Return one page of wallet entities matching an ENS name, address label, or wallet-address prefix, including associated labels and known addresses.

Web Search

Return one page of web pages matching a keyword or phrase, optionally restricted to specific domains and including full page content.

FAQ

Frequently asked questions

With a standalone Surf MCP server, the agents and LLMs can only access a fixed set of Surf tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Surf and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Hermes fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Surf tools.

Yes, absolutely. You can configure which Surf scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Surf data and credentials are handled as safely as possible.

Start with Surf.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Surf tool your agent needs.Free to start.

Start building