L'Atlas / Serveurs MCP / secondlayer

secondlayer

tools.secondlayer/secondlayer

Serveur MCP OK

Faire examiner Voir les tarifs

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

Fiche technique

Auteur
secondlayer.tools (espace de noms du registre)
Dépôt
github.com/ryanwaits/secondlayer
Site
www.secondlayer.tools/docs/mcp
Version
11.8.0
Transport
Streamable HTTP stdio
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://api.secondlayer.tools/mcp Streamable HTTP
Paquets
@secondlayer/mcp 11.8.0 npm stdio
Outils
20
Catégories
Recherche et web
Dernière mise à jour
24 nov. 2026
Publication
24 nov. 2026

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/tools.secondlayer/secondlayer.svg)](https://latlas.dev/mcp/tools.secondlayer/secondlayer)
HTML
<a href="https://latlas.dev/mcp/tools.secondlayer/secondlayer"><img src="https://latlas.dev/badge/fiche/tools.secondlayer/secondlayer.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://api.secondlayer.tools/mcp
Dernier résultat
OK 28 nov. 2026, 09:13
Temps de réponse
791 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
secondlayer 11.8.2
Outils
20

Historique

DateRésultatRéponseOutils
28 nov. 2026, 09:13OK791 ms20

Outils exposés (20, réponse à 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.

ParamètreTypeRequisDescription
contractIdstringouiFully qualified contract ID (e.g. SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-pool-v2-01)
subgraphNamestringnonOverride 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).

ParamètreTypeRequisDescription
contractIdstringnonFilter by contract id
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax rows for this page
orderenum: "asc" | "desc"nonasc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it.
senderstringnonFilter by sender principal
recipientstringnonFilter by recipient principal
assetIdentifierstringnonFilter 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).

ParamètreTypeRequisDescription
contractIdstringnonFilter by contract id
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax rows for this page
orderenum: "asc" | "desc"nonasc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it.
senderstringnonFilter by sender principal
recipientstringnonFilter by recipient principal
assetIdentifierstringnonFilter 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.

ParamètreTypeRequisDescription
eventTypeenum: "stx_transfer" | "stx_mint" | "stx_burn" | "stx_lock" | "ft_transfer" | "ft_mint" | "ft_burn" | "nft_transfer" …ouiRequired. Event type to list: a decoded type or a contract state type.
contractIdstringnonFilter by contract id
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax rows for this page
orderenum: "asc" | "desc"nonasc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it.
senderstringnonFilter by sender principal
recipientstringnonFilter by recipient principal
assetIdentifierstringnonFilter by asset identifier where applicable
traitstringnonMatch contracts conforming to a trait/standard (e.g. sip-010). Mutually exclusive with contractId; contract-keyed event types only.
functionNamestringnonnested_contract_call only: the called function
callerstringnonnested_contract_call only: the calling contract or principal
mapstringnonmap_set / map_insert / map_delete only: the map name
varNamestringnonvar_set only: the data-var name
txIdstringnonRestrict to one transaction
txContextbooleannonJoin 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.

ParamètreTypeRequisDescription
contractIdstringnonFilter by contract id
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax rows for this page
blockHeightnumbernonRead one block (excludes fromHeight/toHeight)
txContextbooleannonJoin 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.

ParamètreTypeRequisDescription
contractIdstringnonFilter by contract id
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax rows for this page
functionNamestringnonFilter by called function name
senderstringnonFilter by caller principal
traitstringnonMatch 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).

ParamètreTypeRequisDescription
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax 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).

ParamètreTypeRequisDescription
contractIdstringnonFilter by contract id
fromHeightnumbernonStart block height (inclusive)
toHeightnumbernonEnd block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax rows for this page
typestringnonFilter by transaction type
senderstringnonFilter 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).

ParamètreTypeRequisDescription
contractIdstringouiContract 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).

Aucun paramètre.

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.

ParamètreTypeRequisDescription
searchstringnonName prefix, spacers and case ignored (dog matches DOG•GO•TO•THE•MOON)
sortenum: "number" | "mints"nonnumber (etch order, default) or mints (busiest first)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax 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.

ParamètreTypeRequisDescription
runestringouiRune 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.

ParamètreTypeRequisDescription
addressstringnonBitcoin address. Exclusive with outpoint.
outpointstringnonOutput as txid:vout. Exclusive with address.
runestringnonNarrow to one rune (id or name)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax 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.

ParamètreTypeRequisDescription
runestringnonFilter by rune (id or name)
addressstringnonFilter by Bitcoin address (transfers only carry one)
kindarray<enum: "rune_etch" | "rune_mint" | "rune_transfer" | "rune_burn">nonEvent kinds to include
txidstringnonRestrict to one Bitcoin txid
fromHeightnumbernonStart Bitcoin block height (inclusive)
toHeightnumbernonEnd Bitcoin block height (inclusive)
cursorstringnonOpaque cursor from a prior response's next_cursor
limitnumbernonMax 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.

ParamètreTypeRequisDescription
requestsarray<object>ouiRead 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.

Aucun paramètre.

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.

Aucun paramètre.

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.

ParamètreTypeRequisDescription
traitstringouiRequired. Trait to match (e.g. "sip-010").
conformanceenum: "declared" | "inferred" | "any"nondeclared = parsed from source, inferred = ABI shape-match, any = either (default)
includestringnonSet to "abi" to include each contract's full ABI
limitnumbernonPage size, 1–500 (default 100)
cursorstringnonOpaque 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.

ParamètreTypeRequisDescription
contractIdstringouiFully 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.

Aucun paramètre.

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

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

Configs prêtes à copier

Adresse distante utilisée : https://api.secondlayer.tools/mcp. Formats repris de la documentation de chaque client.

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 · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.