{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "tools.secondlayer/secondlayer",
  "slug": "secondlayer.mcp",
  "title": "secondlayer",
  "summary": "Stacks chain data: contracts, events, transfers, subgraph scaffolds.",
  "version": "11.8.0",
  "serverKey": "secondlayer",
  "pageUrl": "https://mcpkglabs.com/tool/secondlayer.mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/secondlayer.mcp/install.md",
  "trust": {
    "score": 94,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T10:46:23.772041202Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@secondlayer/mcp@11.8.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add secondlayer -- npx -y @secondlayer/mcp@11.8.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"secondlayer\": {\n      \"args\": [\n        \"-y\",\n        \"@secondlayer/mcp@11.8.0\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"secondlayer\": {\n      \"args\": [\n        \"-y\",\n        \"@secondlayer/mcp@11.8.0\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"secondlayer\": {\n      \"args\": [\n        \"-y\",\n        \"@secondlayer/mcp@11.8.0\"\n      ],\n      \"command\": \"npx\",\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.secondlayer]\ncommand = \"npx\"\nargs = [\"-y\", \"@secondlayer/mcp@11.8.0\"]"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://api.secondlayer.tools/mcp",
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http secondlayer https://api.secondlayer.tools/mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"secondlayer\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://api.secondlayer.tools/mcp\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"secondlayer\": {\n      \"url\": \"https://api.secondlayer.tools/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"secondlayer\": {\n      \"type\": \"http\",\n      \"url\": \"https://api.secondlayer.tools/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.secondlayer]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://api.secondlayer.tools/mcp\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "SECONDLAYER_API_KEY",
      "required": false,
      "secret": true,
      "description": "Account API key (sk-sl_*) for the hosted API: credits, writes.",
      "help": "Account API key (sk-sl_*) for the hosted API: credits, writes.",
      "placeholder": "<SECONDLAYER_API_KEY>"
    },
    {
      "name": "SECONDLAYER_API_URL",
      "required": false,
      "secret": false,
      "description": "Instance API URL. Use https://api.secondlayer.tools for hosted.",
      "help": "Instance API URL. Use https://api.secondlayer.tools for hosted.",
      "default": "http://127.0.0.1:3800",
      "placeholder": "http://127.0.0.1:3800"
    }
  ],
  "expectedTools": [
    "subgraphs_scaffold",
    "subgraphs_list",
    "subgraphs_status",
    "subgraphs_spec",
    "subgraphs_query",
    "subgraphs_reindex",
    "subgraphs_backfill",
    "subgraphs_stop",
    "subgraphs_gaps",
    "subgraphs_operations",
    "subgraphs_delete",
    "subgraphs_deploy",
    "subgraphs_test",
    "webhooks_list",
    "webhooks_get",
    "webhooks_create",
    "webhooks_update",
    "webhooks_delete",
    "webhooks_test",
    "webhooks_pause",
    "webhooks_resume",
    "webhooks_rotate_secret",
    "webhooks_deliveries",
    "webhooks_dead",
    "webhooks_requeue",
    "webhooks_replay",
    "index_ft_transfers",
    "index_nft_transfers",
    "index_events",
    "index_state_writes",
    "index_contract_calls",
    "index_blocks",
    "index_transactions",
    "index_print_schema",
    "index_discover",
    "index_runes",
    "index_rune",
    "index_rune_balances",
    "index_rune_activity",
    "batch_query",
    "streams_tip",
    "streams_dumps",
    "contracts_find",
    "contracts_get_abi",
    "codegen_index_schema",
    "instance_status",
    "archive_verify",
    "archive_latest",
    "archive_quote",
    "credits_balance",
    "archive_bootstrap",
    "archive_repair"
  ],
  "agentSteps": [
    "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).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: subgraphs_scaffold, subgraphs_list, subgraphs_status, subgraphs_spec, subgraphs_query, subgraphs_reindex, subgraphs_backfill, subgraphs_stop, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T10:46:23.772041202Z"
}
