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
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/tools.secondlayer/secondlayer)<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
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 09:13 | OK | 791 ms | 20 |
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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | oui | Fully qualified contract ID (e.g. SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.amm-pool-v2-01) |
| subgraphName | string | non | Override 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | non | Filter by contract id |
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max rows for this page |
| order | enum: "asc" | "desc" | non | asc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it. |
| sender | string | non | Filter by sender principal |
| recipient | string | non | Filter by recipient principal |
| assetIdentifier | string | non | Filter 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | non | Filter by contract id |
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max rows for this page |
| order | enum: "asc" | "desc" | non | asc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it. |
| sender | string | non | Filter by sender principal |
| recipient | string | non | Filter by recipient principal |
| assetIdentifier | string | non | Filter 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ètre | Type | Requis | Description |
|---|---|---|---|
| eventType | enum: "stx_transfer" | "stx_mint" | "stx_burn" | "stx_lock" | "ft_transfer" | "ft_mint" | "ft_burn" | "nft_transfer" … | oui | Required. Event type to list: a decoded type or a contract state type. |
| contractId | string | non | Filter by contract id |
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max rows for this page |
| order | enum: "asc" | "desc" | non | asc (default) reads oldest first; desc reads newest first. A cursor only resumes under the order that issued it. |
| sender | string | non | Filter by sender principal |
| recipient | string | non | Filter by recipient principal |
| assetIdentifier | string | non | Filter by asset identifier where applicable |
| trait | string | non | Match contracts conforming to a trait/standard (e.g. sip-010). Mutually exclusive with contractId; contract-keyed event types only. |
| functionName | string | non | nested_contract_call only: the called function |
| caller | string | non | nested_contract_call only: the calling contract or principal |
| map | string | non | map_set / map_insert / map_delete only: the map name |
| varName | string | non | var_set only: the data-var name |
| txId | string | non | Restrict to one transaction |
| txContext | boolean | non | Join 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | non | Filter by contract id |
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max rows for this page |
| blockHeight | number | non | Read one block (excludes fromHeight/toHeight) |
| txContext | boolean | non | Join 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | non | Filter by contract id |
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max rows for this page |
| functionName | string | non | Filter by called function name |
| sender | string | non | Filter by caller principal |
| trait | string | non | Match 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ètre | Type | Requis | Description |
|---|---|---|---|
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | non | Filter by contract id |
| fromHeight | number | non | Start block height (inclusive) |
| toHeight | number | non | End block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max rows for this page |
| type | string | non | Filter by transaction type |
| sender | string | non | Filter 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | oui | Contract 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ètre | Type | Requis | Description |
|---|---|---|---|
| search | string | non | Name prefix, spacers and case ignored (dog matches DOG•GO•TO•THE•MOON) |
| sort | enum: "number" | "mints" | non | number (etch order, default) or mints (busiest first) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max 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ètre | Type | Requis | Description |
|---|---|---|---|
| rune | string | oui | Rune 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ètre | Type | Requis | Description |
|---|---|---|---|
| address | string | non | Bitcoin address. Exclusive with outpoint. |
| outpoint | string | non | Output as txid:vout. Exclusive with address. |
| rune | string | non | Narrow to one rune (id or name) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max 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ètre | Type | Requis | Description |
|---|---|---|---|
| rune | string | non | Filter by rune (id or name) |
| address | string | non | Filter by Bitcoin address (transfers only carry one) |
| kind | array<enum: "rune_etch" | "rune_mint" | "rune_transfer" | "rune_burn"> | non | Event kinds to include |
| txid | string | non | Restrict to one Bitcoin txid |
| fromHeight | number | non | Start Bitcoin block height (inclusive) |
| toHeight | number | non | End Bitcoin block height (inclusive) |
| cursor | string | non | Opaque cursor from a prior response's next_cursor |
| limit | number | non | Max 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ètre | Type | Requis | Description |
|---|---|---|---|
| requests | array<object> | oui | Read 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ètre | Type | Requis | Description |
|---|---|---|---|
| trait | string | oui | Required. Trait to match (e.g. "sip-010"). |
| conformance | enum: "declared" | "inferred" | "any" | non | declared = parsed from source, inferred = ABI shape-match, any = either (default) |
| include | string | non | Set to "abi" to include each contract's full ABI |
| limit | number | non | Page size, 1–500 (default 100) |
| cursor | string | non | Opaque 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ètre | Type | Requis | Description |
|---|---|---|---|
| contractId | string | oui | Fully 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.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://api.secondlayer.tools/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcpCustomize > Connectors > + Add > Add custom connector ; Name : secondlayer ; URL : https://api.secondlayer.tools/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : secondlayer ; Server URL : https://api.secondlayer.tools/mcp ; Create as a plugin{
"mcpServers": {
"secondlayer": {
"url": "https://api.secondlayer.tools/mcp"
}
}
}{
"mcpServers": {
"secondlayer": {
"type": "http",
"url": "https://api.secondlayer.tools/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"secondlayer": {
"url": "https://api.secondlayer.tools/mcp"
}
}
}{
"mcpServers": {
"secondlayer": {
"httpUrl": "https://api.secondlayer.tools/mcp"
}
}
}[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.