Koskamo

Afterbook MCP

An MCP server for Coinbase tokenized stocks on Base that allows agents to check trade plans, build baskets, and assess loan health. It provides data on price gaps and pool depth, generating links for users to sign transactions in their own wallets without exposing keys to the agent.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Afterbook MCP logo, by Hryhorii77Community listingStreamable HTTPNo sign-inEndpoint checked 2026-11-26Published by Hryhorii77
You need:Free, no sign-up: the key is shown once (only its hash is stored) and lasts a year.Limits: 1 request a second per key, and 5 new keys a day per IP.
MCP endpoint (Streamable HTTP)
https://afterbook.app/api/mcp
Vendor documentation

What its tools do

7 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

7 of 7 have a description · 0 of 7 declare behavior hints · 4 of 6 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Availability 1 of 1 checks passed in 30 days

What you can do with it

  • Generate checked buy, wait, or skip plans for specific stocks within budget limits
  • Create diversified stock baskets based on themes or sectors with liquidity checks
  • Check wallet health for Aave and Morpho stock loans against Base prices
  • Retrieve real-time tape data showing token price gaps and pool depth

Source and maintenance

Community listingRegistry 1.0.0
Maintenance checked

Protocol and capabilities

Server
afterbook 1.0.0
MCP protocol negotiated in check
2025-11-25
Tools
7 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  }
}

Tools

7 advertised

get_tape — Get Tape
Advertised by the server during the last successful anonymous check.

Cash-market close price vs the on-chain price on Aero (formerly Aerodrome) for the Coinbase tokenized stocks Afterbook tracks on Base — basis in bp and real pool depth. Read-only; no wallet is ever involved.

get_tape input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {}
}
get_quote — Get Quote
Advertised by the server during the last successful anonymous check.

Estimate shares out, execution price, and price impact for sizing a USDC -> stock trade on one of the tracked pools. This is a local estimate for sizing a trade, not a firm quote — the actual fill happens on chain, through the swap on afterbook.app, signed in the trader's own wallet (make_plan returns a link that opens it filled in); this tool signs nothing.

get_quote input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "symbol",
    "usdcIn"
  ],
  "properties": {
    "symbol": {
      "enum": [
        "NVDAc",
        "AAPLc",
        "METAc",
        "GOOGLc",
        "AMZNc",
        "MSFTc",
        "MSTRc",
        "SNDKc",
        "SPCXc",
        "TSLAc",
        "PLTRc",
        "MUc",
        "NFLXc",
        "SKHYc",
        "HIMSc",
        "ORCLc",
        "AMDc",
        "AVGOc",
        "LLYc",
        "MRVLc",
        "SONYc",
        "BILIc",
        "SAPc",
        "SANc",
        "NOKc",
        "PDDc",
        "LIc",
        "BIDUc",
        "VALEc",
        "BUDc",
        "NIOc",
        "ARMc",
        "INFYc",
        "ULc",
        "WRDc",
        "NVOc",
        "SEc",
        "HSAIc",
        "ANTc"
      ],
      "type": "string"
    },
    "usdcIn": {
      "type": "number",
      "maximum": 10000000,
      "exclusiveMinimum": 0
    }
  }
}
get_basis_stats — Get Basis Stats
Advertised by the server during the last successful anonymous check.

How big the basis typically gets while the cash market is NOT open, over the last 30 days — mean, mean absolute, and max absolute basis in bp, sampled every 5 minutes off real traffic. Returns null if there is not enough sampled history yet.

get_basis_stats input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "symbol"
  ],
  "properties": {
    "symbol": {
      "enum": [
        "NVDAc",
        "AAPLc",
        "METAc",
        "GOOGLc",
        "AMZNc",
        "MSFTc",
        "MSTRc",
        "SNDKc",
        "SPCXc",
        "TSLAc",
        "PLTRc",
        "MUc",
        "NFLXc",
        "SKHYc",
        "HIMSc",
        "ORCLc",
        "AMDc",
        "AVGOc",
        "LLYc",
        "MRVLc",
        "SONYc",
        "BILIc",
        "SAPc",
        "SANc",
        "NOKc",
        "PDDc",
        "LIc",
        "BIDUc",
        "VALEc",
        "BUDc",
        "NIOc",
        "ARMc",
        "INFYc",
        "ULc",
        "WRDc",
        "NVOc",
        "SEc",
        "HSAIc",
        "ANTc"
      ],
      "type": "string"
    }
  }
}
make_plan — Make a trade plan
Advertised by the server during the last successful anonymous check.

A checked trade plan for Coinbase tokenized stocks on Base: for each stock a buy, wait or skip verdict with reasons (gap to the real stock, stale pool, earnings, depth) and a size within your cost limit, $25k and 10% of the pool. Returns planUrl, a link where a person opens the plan on afterbook.app and signs each buy in their own wallet, after the checks run again and never for more than the plan shows. Reads only; signs nothing.

make_plan input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "budgetUsd"
  ],
  "properties": {
    "symbols": {
      "type": "array",
      "items": {
        "enum": [
          "NVDAc",
          "AAPLc",
          "METAc",
          "GOOGLc",
          "AMZNc",
          "MSFTc",
          "MSTRc",
          "SNDKc",
          "SPCXc",
          "TSLAc",
          "PLTRc",
          "MUc",
          "NFLXc",
          "SKHYc",
          "HIMSc",
          "ORCLc",
          "AMDc",
          "AVGOc",
          "LLYc",
          "MRVLc",
          "SONYc",
          "BILIc",
          "SAPc",
          "SANc",
          "NOKc",
          "PDDc",
          "LIc",
          "BIDUc",
          "VALEc",
          "BUDc",
          "NIOc",
          "ARMc",
          "INFYc",
          "ULc",
          "WRDc",
          "NVOc",
          "SEc",
          "HSAIc",
          "ANTc"
        ],
        "type": "string"
      },
      "maxItems": 8,
      "description": "Stocks to check; none = the deepest pools."
    },
    "budgetUsd": {
      "type": "number",
      "maximum": 100000,
      "minimum": 10,
      "description": "USDC to plan, $10 to $100,000; each buy is still capped at $25,000 and 10% of its pool."
    },
    "maxCostBp": {
      "type": "number",
      "maximum": 200,
      "minimum": 1,
      "description": "Most a fill may cost, price impact plus pool fee, in bp, 1 to 200 (default 30)."
    },
    "earningsDays": {
      "type": "integer",
      "maximum": 14,
      "minimum": 0,
      "description": "Wait if earnings are within this many days, 0 to 14 (default 2)."
    },
    "maxPremiumBp": {
      "type": "number",
      "maximum": 500,
      "minimum": 0,
      "description": "Most the token may trade above the cash price, in bp, 0 to 500 (default 50)."
    }
  }
}
make_basket — Make a basket
Advertised by the server during the last successful anonymous check.

A 2-4 stock basket of Coinbase tokenized stocks on Base from a theme or sectors: the code picks the deepest steady pools that pass the checks and sizes them within your budget and cost limit, with every dropped stock and why. Returns buyUrl, a link where a person opens the basket on afterbook.app and signs its buy in their own wallet, after the checks run again and never for more than the basket shows. Reads only; signs nothing.

make_basket input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "budgetUsd"
  ],
  "properties": {
    "theme": {
      "enum": [
        "Any",
        "AI chips",
        "Memory & storage",
        "Software & cloud",
        "Internet & media",
        "Consumer tech",
        "EVs & autonomy",
        "Health care",
        "China",
        "Outside the US",
        "Bitcoin",
        "Space"
      ],
      "type": "string",
      "description": "One of Afterbook's fixed themes (default: Any)."
    },
    "cashPct": {
      "type": "number",
      "maximum": 50,
      "minimum": 0,
      "description": "Percent of the budget to keep as cash, 0 to 50 (default 0)."
    },
    "exclude": {
      "type": "array",
      "items": {
        "enum": [
          "Information Technology",
          "Communication Services",
          "Consumer Discretionary",
          "Consumer Staples",
          "Health Care",
          "Financials",
          "Industrials",
          "Materials",
          "Energy",
          "Utilities",
          "Real Estate"
        ],
        "type": "string"
      },
      "description": "GICS sectors to leave out."
    },
    "budgetUsd": {
      "type": "number",
      "maximum": 25000,
      "minimum": 10,
      "description": "USDC for the basket, $10 to $25,000 (one basket buy)."
    },
    "maxCostBp": {
      "type": "number",
      "maximum": 200,
      "minimum": 1,
      "description": "Most a fill may cost, price impact plus pool fee, in bp, 1 to 200 (default 30)."
    },
    "minStocks": {
      "type": "integer",
      "maximum": 4,
      "minimum": 2,
      "description": "Spread over at least this many stocks, 2 to 4 (default 3)."
    },
    "earningsDays": {
      "type": "integer",
      "maximum": 14,
      "minimum": 0,
      "description": "Wait if earnings are within this many days, 0 to 14 (default 2)."
    },
    "maxPremiumBp": {
      "type": "number",
      "maximum": 500,
      "minimum": 0,
      "description": "Most a token may trade above the cash price, in bp, 0 to 500 (default 50)."
    }
  }
}
check_loan_health — Check loan health
Advertised by the server during the last successful anonymous check.

A wallet's Aave V4 and Morpho stock-token loans on Base: health at the lending oracle and at Aero's onchain price, which keeps trading while the cash market is shut (healthIfNextOpenAtBase: the loan's health if the next open matches Base's price, e.g. over a weekend), how far the collateral could fall before liquidation, whether it is under the threshold, and for an Aave loan links that open Afterbook's Aave panel with the repay or the added collateral worked out from the connected wallet's own loan, for the person to check and sign. Reads public positions only; signs nothing.

check_loan_health input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "wallet"
  ],
  "properties": {
    "wallet": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "The borrower address."
    },
    "threshold": {
      "type": "number",
      "maximum": 3,
      "minimum": 1.01,
      "description": "Health to flag loans under (default 1.2)."
    }
  }
}
make_rescue_link — Make a loan rescue link
Advertised by the server during the last successful anonymous check.

For a wallet's Aave V4 stock loan on Base: a link that opens Afterbook's Aave panel with its rescue planner set to repay USDC or add collateral, at the price fall implied by Base's price now and a target health above your threshold. The link carries no amount and no wallet: the panel fills the Repay or Add field from the loan of the wallet the person connects, and they check it and sign. Returns null url with a reason for a wallet with no Aave loan (Morpho loans have no in-app panel). Reads public positions only; signs nothing.

make_rescue_link input schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "wallet",
    "action"
  ],
  "properties": {
    "action": {
      "enum": [
        "repay",
        "add"
      ],
      "type": "string",
      "description": "repay = pay back USDC; add = post more of a stock already in the wallet as collateral."
    },
    "wallet": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "The borrower address."
    },
    "threshold": {
      "type": "number",
      "maximum": 3,
      "minimum": 1.01,
      "description": "The health line to get back above (default 1.2)."
    }
  }
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
1 of 1 (100%)
Average latency
667 ms
95th percentile latency
667 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 667 ms · metadata changed · 7 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http afterbook-mcp https://afterbook.app/api/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add afterbook-mcp --url https://afterbook.app/api/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable afterbook-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "afterbook-mcp": {
      "url": "https://afterbook.app/api/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "afterbook-mcp": {
      "type": "streamableHttp",
      "url": "https://afterbook.app/api/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start afterbook-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "afterbook-mcp": {
      "type": "http",
      "url": "https://afterbook.app/api/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http afterbook-mcp https://afterbook.app/api/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://afterbook.app/api/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "afterbook-mcp": {
      "serverUrl": "https://afterbook.app/api/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Afterbook MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.