L'Atlas / MCP servers / secondlayer

secondlayer

tools.secondlayer/secondlayer

MCP server OK

Get a review See pricing

Stacks chain data: contracts, events, transfers, subgraph scaffolds. Hosted with browser sign-in.

Technical sheet

Author
secondlayer.tools (registry namespace)
Repository
github.com/ryanwaits/secondlayer
Site
www.secondlayer.tools/docs/mcp
Version
11.8.0
Transport
Streamable HTTP stdio
Authentication
None (observed by our test)
Server address
https://api.secondlayer.tools/mcp Streamable HTTP
Packages
@secondlayer/mcp 11.8.0 npm stdio
Tools
20
Categories
Search and web
Last updated
24 Nov 2026
Published
24 Nov 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/tools.secondlayer/secondlayer.svg?lang=en)](https://latlas.dev/en/mcp/tools.secondlayer/secondlayer)
HTML
<a href="https://latlas.dev/en/mcp/tools.secondlayer/secondlayer"><img src="https://latlas.dev/badge/fiche/tools.secondlayer/secondlayer.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://api.secondlayer.tools/mcp
Last result
OK 28 Nov 2026, 09:13
Response time
791 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
secondlayer 11.8.2
Tools
20

History

DateResultResponseTools
28 Nov 2026, 09:13OK791 ms20

Exposed tools (20, from tools/list, 28 Nov 2026)

subgraphs_scaffold

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.

ParameterTypeRequiredDescription
contractIdstringyesFully qualified contract ID (e.g. SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-pool-v2-01)
subgraphNamestringnoOverride the subgraph name (defaults to contract name)

index_ft_transfers

List decoded SIP-010 fungible-token transfers from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).

ParameterTypeRequiredDescription
contractIdstringnoFilter by contract id
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page
orderenum: "asc" | "desc"noasc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it.
senderstringnoFilter by sender principal
recipientstringnoFilter by recipient principal
assetIdentifierstringnoFilter by asset identifier (contract::asset), e.g. SP…sbtc-token::sbtc-token

index_nft_transfers

List decoded SIP-009 non-fungible-token transfers from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).

ParameterTypeRequiredDescription
contractIdstringnoFilter by contract id
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page
orderenum: "asc" | "desc"noasc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it.
senderstringnoFilter by sender principal
recipientstringnoFilter by recipient principal
assetIdentifierstringnoFilter by asset identifier (contract::asset)

index_events

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 ft/nft transfers without a trait prefer index_ft_transfers / index_nft_transfers. Contract state types (nested_contract_call, var_set, map_set, map_insert, map_delete) show what a transaction did inside contracts: every inner contract-call? and every data-var and map write, from genesis on hosted mainnet.

ParameterTypeRequiredDescription
eventTypeenum: "stx_transfer" | "stx_mint" | "stx_burn" | "stx_lock" | "ft_transfer" | "ft_mint" | "ft_burn" | "nft_transfer" …yesRequired. Event type to list: a decoded type or a contract state type.
contractIdstringnoFilter by contract id
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page
orderenum: "asc" | "desc"noasc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it.
senderstringnoFilter by sender principal
recipientstringnoFilter by recipient principal
assetIdentifierstringnoFilter by asset identifier where applicable
traitstringnoMatch contracts conforming to a trait/standard (e.g. sip-010). Mutually exclusive with contractId; contract-keyed event types only.
functionNamestringnonested_contract_call only: the called function
callerstringnonested_contract_call only: the calling contract or principal
mapstringnomap_set / map_insert / map_delete only: the map name
varNamestringnovar_set only: the data-var name
txIdstringnoRestrict to one transaction
txContextbooleannoJoin the submitting transaction into each event (tx_sender, tx_type, tx_status, tx_contract_id, tx_function_name). For print events it's the only source of the submitting sender.

index_state_writes

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.

ParameterTypeRequiredDescription
contractIdstringnoFilter by contract id
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page
blockHeightnumbernoRead one block (excludes fromHeight/toHeight)
txContextbooleannoJoin the writing transaction onto each row

index_contract_calls

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.

ParameterTypeRequiredDescription
contractIdstringnoFilter by contract id
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page
functionNamestringnoFilter by called function name
senderstringnoFilter by caller principal
traitstringnoMatch contracts conforming to a trait/standard (e.g. sip-010). Mutually exclusive with contractId.

index_blocks

List decoded blocks from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).

ParameterTypeRequiredDescription
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page

index_transactions

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).

ParameterTypeRequiredDescription
contractIdstringnoFilter by contract id
fromHeightnumbernoStart block height (inclusive)
toHeightnumbernoEnd block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page
typestringnoFilter by transaction type
senderstringnoFilter by sender principal

index_print_schema

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 loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).

ParameterTypeRequiredDescription
contractIdstringyesContract id (SP….name) whose print events to profile

index_discover

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_API_KEY (hosted).

No parameters.

index_runes

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.

ParameterTypeRequiredDescription
searchstringnoName prefix, spacers and case ignored (dog matches DOG•GO•TO•THE•MOON)
sortenum: "number" | "mints"nonumber (etch order, default) or mints (busiest first)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page

index_rune

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.

ParameterTypeRequiredDescription
runestringyesRune id (840000:3) or name, any case, with or without spacers

index_rune_balances

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.

ParameterTypeRequiredDescription
addressstringnoBitcoin address. Exclusive with outpoint.
outpointstringnoOutput as txid:vout. Exclusive with address.
runestringnoNarrow to one rune (id or name)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page

index_rune_activity

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.

ParameterTypeRequiredDescription
runestringnoFilter by rune (id or name)
addressstringnoFilter by Bitcoin address (transfers only carry one)
kindarray<enum: "rune_etch" | "rune_mint" | "rune_transfer" | "rune_burn">noEvent kinds to include
txidstringnoRestrict to one Bitcoin txid
fromHeightnumbernoStart Bitcoin block height (inclusive)
toHeightnumbernoEnd Bitcoin block height (inclusive)
cursorstringnoOpaque cursor from a prior response's next_cursor
limitnumbernoMax rows for this page

batch_query

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.

ParameterTypeRequiredDescription
requestsarray<object>yesRead descriptors, executed concurrently

streams_tip

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.

No parameters.

streams_dumps

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 URL to be configured (SL_STREAMS_DUMPS_URL). For live reads use REST GET /v1/streams/events; for tip/lag use streams_tip.

No parameters.

contracts_find

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.

ParameterTypeRequiredDescription
traitstringyesRequired. Trait to match (e.g. "sip-010").
conformanceenum: "declared" | "inferred" | "any"nodeclared = parsed from source, inferred = ABI shape-match, any = either (default)
includestringnoSet to "abi" to include each contract's full ABI
limitnumbernoPage size, 1–500 (default 100)
cursorstringnoOpaque cursor from a prior response's next_cursor

contracts_get_abi

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.

ParameterTypeRequiredDescription
contractIdstringyesFully qualified contract id (e.g. SP….amm-pool-v2-01)

account_whoami

Show the archive account email at api.secondlayer.tools, not the self-host instance.

No parameters.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://api.secondlayer.tools/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : secondlayer ; URL : https://api.secondlayer.tools/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : secondlayer ; Server URL : https://api.secondlayer.tools/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "secondlayer": {
      "url": "https://api.secondlayer.tools/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "secondlayer": {
      "type": "http",
      "url": "https://api.secondlayer.tools/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "secondlayer": {
      "url": "https://api.secondlayer.tools/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "secondlayer": {
      "httpUrl": "https://api.secondlayer.tools/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.secondlayer]
url = "https://api.secondlayer.tools/mcp"

Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.