L'Agora
MCPRépond

secondlayer

tools.secondlayer/secondlayer

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

Description fournie par l’auteur dans le registre officiel MCP (en anglais).

Dépôt
github.com/ryanwaits/secondlayer
Site
www.secondlayer.tools/docs/mcp
Adresse du serveur
https://api.secondlayer.tools/mcp (streamable-http)
Version
11.8.0
Auteur
secondlayer.tools (espace de noms vérifié par le registre)
Source
Registre officiel MCP (mis à jour le 24 nov. 2026)

Comment l’installer

Variables à renseigner : SECONDLAYER_API_KEY, SECONDLAYER_API_URL.

Serveur distant (rien à installer)

Claude Code

Dans un terminal :

claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp
Claude (application et claude.ai)

Ouvrez Réglages, puis Connecteurs, et ajoutez un connecteur personnalisé avec cette adresse. Si le serveur demande une connexion, Claude vous la proposera.

https://api.secondlayer.tools/mcp
ChatGPT

Dans Réglages, partie Applications et connecteurs, activez le mode développeur, puis créez un connecteur avec cette adresse.

https://api.secondlayer.tools/mcp
Cursor ~/.cursor/mcp.json

Ajoutez ceci au fichier ~/.cursor/mcp.json (ou .cursor/mcp.json dans le projet) :

{
  "mcpServers": {
    "secondlayer": {
      "url": "https://api.secondlayer.tools/mcp"
    }
  }
}
VS Code .vscode/mcp.json

Ajoutez ceci au fichier .vscode/mcp.json de votre projet :

{
  "servers": {
    "secondlayer": {
      "type": "http",
      "url": "https://api.secondlayer.tools/mcp"
    }
  }
}

Sur votre machine

Claude Code

Le serveur tourne sur votre machine (paquet npm). Dans un terminal :

claude mcp add secondlayer -e SECONDLAYER_API_KEY=VOTRE_SECONDLAYER_API_KEY -e SECONDLAYER_API_URL=VOTRE_SECONDLAYER_API_URL -- npx -y @secondlayer/[email protected]
Claude Desktop claude_desktop_config.json

Réglages, Développeur, Modifier la configuration, puis ajoutez :

{
  "mcpServers": {
    "secondlayer": {
      "command": "npx",
      "args": [
        "-y",
        "@secondlayer/[email protected]"
      ],
      "env": {
        "SECONDLAYER_API_KEY": "VOTRE_SECONDLAYER_API_KEY",
        "SECONDLAYER_API_URL": "VOTRE_SECONDLAYER_API_URL"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

Dans ~/.cursor/mcp.json :

{
  "mcpServers": {
    "secondlayer": {
      "command": "npx",
      "args": [
        "-y",
        "@secondlayer/[email protected]"
      ],
      "env": {
        "SECONDLAYER_API_KEY": "VOTRE_SECONDLAYER_API_KEY",
        "SECONDLAYER_API_URL": "VOTRE_SECONDLAYER_API_URL"
      }
    }
  }
}
VS Code .vscode/mcp.json

Dans .vscode/mcp.json :

{
  "servers": {
    "secondlayer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@secondlayer/[email protected]"
      ],
      "env": {
        "SECONDLAYER_API_KEY": "VOTRE_SECONDLAYER_API_KEY",
        "SECONDLAYER_API_URL": "VOTRE_SECONDLAYER_API_URL"
      }
    }
  }
}
ChatGPT

ChatGPT se connecte seulement à des serveurs distants (une adresse https). Ce paquet tourne en local : utilisez l’une des applications ci-dessus.

Ces configurations sont construites à partir des informations publiées par l’auteur. Vérifiez le dépôt avant d’installer un serveur local.

Notre test

Répond Le serveur répond au protocole MCP et liste ses outils.

Date
28 nov. 2026, 09:13 (test fait par L’Atlas)
Temps de réponse
791 ms (test complet)
Outils trouvés
20
Nom annoncé
secondlayer 11.8.2
Protocole
MCP 2025-11-25
Prochain test
5 déc. 2026
Voir les outils (20)
  • 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
  • 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).
  • 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).
  • 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 s
  • 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
  • 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
  • index_blocks
    List decoded blocks from Index. Keyless on OSS loopback; otherwise needs INSTANCE_TOKEN (OSS) or SECONDLAYER_API_KEY (hosted).
  • 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).
  • 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 su
  • 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 lo
  • 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
  • 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.
  • 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. `no
  • 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`
  • 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/c
  • 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
  • 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 UR
  • 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.
  • 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
  • account_whoami
    Show the archive account email at api.secondlayer.tools, not the self-host instance.

Ce que fait le test : il ouvre une session MCP (initialize) et demande la liste des outils (tools/list), sans clé ni compte. Aucun outil n’est appelé. En savoir plus

Avis

Pas encore d’avis.

Connectez-vous pour donner votre avis. Il suffit de votre e-mail.

Commentaires

Pas encore de commentaire. Une question, une astuce ? Lancez la discussion.

Connectez-vous pour commenter.

C’est votre projet ? Connectez-vous pour revendiquer la fiche.

Badge pour votre README

tools.secondlayer/secondlayer sur L’Agora

Montrez que votre projet est référencé (et testé, s’il répond) : collez ce code dans votre README. Le badge suit le dernier test et renvoie vers cette fiche.

Markdown (GitHub)

[![tools.secondlayer/secondlayer sur L’Agora](https://lagora.dev/badge/tools.secondlayer/secondlayer.svg)](https://lagora.dev/fiche/tools.secondlayer/secondlayer)

HTML

<a href="https://lagora.dev/fiche/tools.secondlayer/secondlayer"><img src="https://lagora.dev/badge/tools.secondlayer/secondlayer.svg" alt="tools.secondlayer/secondlayer sur L’Agora" height="20"></a>

Mettre en avant

Réservé à l’auteur de la fiche : connectez-vous pour continuer.

Signaler cette fiche