MCP server
secondlayer Official
tools.secondlayer/secondlayer
Checked 28 Nov 2026, 11:13 UTC · Connected to it and listed its tools
Stacks chain data: contracts, events, transfers, subgraph scaffolds. Hosted with browser sign-in.
Working at last checkVerified publisher: secondlayer.toolsAbout 4,987 tokens per request once connected20 tools
https://api.secondlayer.tools/mcp
At a glance
- Type
- MCP server
- Publisher
- secondlayer.tools (verified by the MCP Registry)
- Status
- Working at last check
- Tools
- 20
- Token cost
- About 4,987 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 28 Nov 2026, 11:13 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.secondlayer] url = "https://api.secondlayer.tools/mcp"
Gemini CLI
{"mcpServers":{"secondlayer":{"httpUrl":"https://api.secondlayer.tools/mcp"}}}
Cursor
{"mcpServers":{"secondlayer":{"url":"https://api.secondlayer.tools/mcp"}}}
VS Code
{"servers":{"secondlayer":{"type":"http","url":"https://api.secondlayer.tools/mcp"}}}
Antigravity
agy mcp add secondlayer https://api.secondlayer.tools/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"secondlayer","server_url":"https://api.secondlayer.tools/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"secondlayer","server_url":"https://api.secondlayer.tools/mcp"}
Tools
account_whoami~74 tokens
Show the archive account email at api.secondlayer.tools, not the self-host instance.batch_query~222 tokens
Run up to 10 public /v1 reads in one round trip (POST /v1/batch). Each item keeps its own auth/quota/pay-per-call semantics; results return in order with per-item status. Paths must start with /v1/index, /v1/subgraphs, /v1/streams, or /v1/contracts.contracts_find~258 tokens
Discover deployed Stacks contracts conforming to a trait (e.g. "sip-010", "sip-009", "sip-013"). The discovery endpoint for "which contracts implement X". Reads are public.contracts_get_abi~168 tokens
Fetch a single deployed contract's ABI from the registry (prod-safe). Returns the contract's metadata + full ABI (functions, maps, variables, fungible/non-fungible tokens). Returns not_found if the contract isn't in the registry. Use it to inspect a contract before subgraphs_scaffold.index_blocks~173 tokens
List decoded blocks from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).index_contract_calls~317 tokens
List decoded contract calls from the Index (function name, args, result). Set `trait` (e.g. sip-010) to match calls to all contracts conforming to a standard. Note: contract-call cursors are a SEPARATE keyspace from event cursors — they are not interchangeable.index_discover~140 tokens
Discover the Index vocabulary: every event type and its columns, allowed/equality filters, and required-non-null fields (and which types accept `trait`). Read this before building Index queries instead of guessing filters. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_index_events~788 tokens
List chain events from the Index by event type. Use this for event types without a dedicated tool (stx_*, ft_mint/burn, nft_mint/burn, print), and for trait-scoped queries: set `trait` (e.g. sip-010) to match all contracts conforming to a standard — pair with contracts_find to discover traits. For findex_ft_transfers~331 tokens
List decoded SIP-010 fungible-token transfers from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).index_nft_transfers~324 tokens
List decoded SIP-009 non-fungible-token transfers from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).index_print_schema~194 tokens
Empirical per-topic print payload schemas for a contract, inferred from sampled on-chain events: each topic's fields with observed Clarity types, decoded TS types, subgraph column types, and presence rates. Use before writing print_event subgraph handlers to learn what's on e.data. Keyless on OSS loindex_rune~149 tokens
Get one Bitcoin Rune by id or name. Returns null when not found or Runes is not configured. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile.index_rune_activity~333 tokens
List Bitcoin Runes etch, mint, transfer, and burn events. Heights are Bitcoin block heights. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile. `notes` says when Runes is not configured.index_rune_balances~247 tokens
List current Bitcoin Runes balances per unspent output. Pass exactly one of address or outpoint. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile. `notes` says when Runes is not configured.index_runes~234 tokens
List the Bitcoin Runes catalog: identity, supply, mints, and mint terms. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted). Self-host needs the bitcoin compose profile. `notes` says when Runes is not configured.index_state_writes~288 tokens
List the exact contract-state writes each block committed, in node order: {block_height, ordinal, tx_index, key, value_hex}. Shows which storage key a transaction changed when its events don't. Read one block with blockHeight, or a contract's writes over a height range.index_transactions~246 tokens
List decoded transactions from Index. Filter by type, sender, or contract. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).streams_dumps~168 tokens
List the Streams bulk parquet dumps manifest — coverage range, latest_finalized_cursor, and per-file metadata (block range, row count, size, sha256, signed URL). This is the cold backfill path for downloading all raw data; fetch the file URLs directly (e.g. with DuckDB). Requires the dumps base URLstreams_tip~127 tokens
Current canonical chain tip as Streams sees it: block height/hash, burn height, finalized_height, lag_seconds, and the oldest seekable height/cursor for this key's retention window. Call it before a cursor walk to know where the stream ends, and after an ingest to check lag.subgraphs_scaffold~206 tokens
Generate a subgraph from observed print events when available; ABI token transfers or public functions only when the contract has never printed. Review the TypeScript, run subgraphs_test until ok: true with written >= 1, read skipped, then subgraphs_deploy. dryRun is DDL only.
Browse
Related MCP servers
- ChainRay
Multi-chain on-chain intelligence for AI agents through a public remote MCP server. - BRAINIAC Base Chain Data
Paid Base Chain Data API via x402. Unpaid tool calls return 402. - Bitquery
Bitquery MCP — trade-level blockchain data (DEX trades, transfers, holders) across 40+ chains via… - EVM & Solana Chain Reads (Tanod)
Read EVM and Solana chains for balances, tokens, eth_call, logs, receipts, gas, blocks and ENS. - X402 Endpoints
x402 paid API tools for AI agents on Base: EU/global registries, crypto, wallet & agent trust. - SQD
Query SQD Portal datasets across blockchains, including native Tron transactions and events. - Agent Data Tools: Chain data
359 tools: balances, blocks, gas, txs and logs on 5 EVM chains, plus Bitcoin. 10 free calls. - M2M Sentinel
Base bytecode capability observations, proxy resolution, gas, DEX, and transfer telemetry.
Badge for your README
[](https://aptlynx.net/servers/tools.secondlayer/secondlayer)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents