Any serious app needs data a general-purpose API can’t serve, and shouldn’t have to. This is the layer underneath, so you can shape it yourself.
The docs ship as a skill. Install it once and your harness knows every endpoint; you ask the question, it makes the calls. Get a key and the last 24 hours are free.
One script. Picked up on the next session.
curl -fsSL https://secondlayer.tools/skill.sh | bashcodex mcp add secondlayer --env SL_API_URL=https://api.secondlayer.tools --env SECONDLAYER_API_KEY=$SECONDLAYER_API_KEY -- bunx @secondlayer/mcp{
"mcpServers": {
"secondlayer": {
"command": "bunx",
"args": [
"@secondlayer/mcp"
],
"env": {
"SL_API_URL": "https://api.secondlayer.tools",
"SECONDLAYER_API_KEY": "<sk-sl_ key from /account/keys>"
}
}
}
}/secondlayer show who staked into PoX-5 today, grouped by signercurl -H "Authorization: Bearer $SECONDLAYER_API_KEY" \
"https://api.secondlayer.tools/v1/index/pox5/events?topic=stake&limit=3"One container beside your node. Every row lands in Postgres you operate, checkable against the signed archive.