secondlayer

v11.8.0
tools.secondlayer/secondlayer Checked 6 hours ago Published 7 days ago

Stacks chain data: contracts, events, transfers, subgraph scaffolds.

Values you need

VariableWhat it is
SECONDLAYER_API_KEYoptional secret Account API key (sk-sl_*) for the hosted API: credits, writes.
SECONDLAYER_API_URLoptional Instance API URL. Use https://api.secondlayer.tools for hosted. Default: http://127.0.0.1:3800

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add secondlayer -- npx -y @secondlayer/mcp@11.8.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "secondlayer": {
      "args": [
        "-y",
        "@secondlayer/mcp@11.8.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "secondlayer": {
      "args": [
        "-y",
        "@secondlayer/mcp@11.8.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "secondlayer": {
      "args": [
        "-y",
        "@secondlayer/mcp@11.8.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.secondlayer]
command = "npx"
args = ["-y", "@secondlayer/mcp@11.8.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "secondlayer": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.secondlayer.tools/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "secondlayer": {
      "url": "https://api.secondlayer.tools/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "secondlayer": {
      "type": "http",
      "url": "https://api.secondlayer.tools/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.secondlayer]
command = "npx"
args = ["-y", "mcp-remote", "https://api.secondlayer.tools/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: subgraphs_scaffold, subgraphs_list, subgraphs_status, subgraphs_spec, subgraphs_query, subgraphs_reindex, subgraphs_backfill, subgraphs_stop, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json