Afterbook
Checked trade plans, baskets and loan health for Coinbase tokenized stocks on Base. You sign.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"afterbook": {
"url": "https://afterbook.app/api/mcp"
}
}
}Remote endpoints
https://afterbook.app/api/mcpstreamable-httpWhat it can do
Tool inventory
Tools (7)
🟢get_tape
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.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_quote(symbol, usdcIn)
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.
Input Schema
{
"type": "object",
"properties": {
"symbol": {
"type": "string",
"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"
]
},
"usdcIn": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000000
}
},
"required": [
"symbol",
"usdcIn"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_basis_stats(symbol)
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.
Input Schema
{
"type": "object",
"properties": {
"symbol": {
"type": "string",
"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"
]
}
},
"required": [
"symbol"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}⚪make_plan(symbols, budgetUsd, maxPremiumBp, maxCostBp, earningsDays)
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.
Input Schema
{
"type": "object",
"properties": {
"symbols": {
"description": "Stocks to check; none = the deepest pools.",
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"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"
]
}
},
"budgetUsd": {
"type": "number",
"minimum": 10,
"maximum": 100000,
"description": "USDC to plan, $10 to $100,000; each buy is still capped at $25,000 and 10% of its pool."
},
"maxPremiumBp": {
"description": "Most the token may trade above the cash price, in bp, 0 to 500 (default 50).",
"type": "number",
"minimum": 0,
"maximum": 500
},
"maxCostBp": {
"description": "Most a fill may cost, price impact plus pool fee, in bp, 1 to 200 (default 30).",
"type": "number",
"minimum": 1,
"maximum": 200
},
"earningsDays": {
"description": "Wait if earnings are within this many days, 0 to 14 (default 2).",
"type": "integer",
"minimum": 0,
"maximum": 14
}
},
"required": [
"budgetUsd"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}⚪make_basket(theme, exclude, minStocks, budgetUsd, cashPct, ...)
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.
Input Schema
{
"type": "object",
"properties": {
"theme": {
"description": "One of Afterbook's fixed themes (default: Any).",
"type": "string",
"enum": [
"Any",
"AI chips",
"Memory & storage",
"Software & cloud",
"Internet & media",
"Consumer tech",
"EVs & autonomy",
"Health care",
"China",
"Outside the US",
"Bitcoin",
"Space"
]
},
"exclude": {
"description": "GICS sectors to leave out.",
"type": "array",
"items": {
"type": "string",
"enum": [
"Information Technology",
"Communication Services",
"Consumer Discretionary",
"Consumer Staples",
"Health Care",
"Financials",
"Industrials",
"Materials",
"Energy",
"Utilities",
"Real Estate"
]
}
},
"minStocks": {
"description": "Spread over at least this many stocks, 2 to 4 (default 3).",
"type": "integer",
"minimum": 2,
"maximum": 4
},
"budgetUsd": {
"type": "number",
"minimum": 10,
"maximum": 25000,
"description": "USDC for the basket, $10 to $25,000 (one basket buy)."
},
"cashPct": {
"description": "Percent of the budget to keep as cash, 0 to 50 (default 0).",
"type": "number",
"minimum": 0,
"maximum": 50
},
"maxPremiumBp": {
"description": "Most a token may trade above the cash price, in bp, 0 to 500 (default 50).",
"type": "number",
"minimum": 0,
"maximum": 500
},
"maxCostBp": {
"description": "Most a fill may cost, price impact plus pool fee, in bp, 1 to 200 (default 30).",
"type": "number",
"minimum": 1,
"maximum": 200
},
"earningsDays": {
"description": "Wait if earnings are within this many days, 0 to 14 (default 2).",
"type": "integer",
"minimum": 0,
"maximum": 14
}
},
"required": [
"budgetUsd"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢check_loan_health(wallet, threshold)
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.
Input Schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The borrower address."
},
"threshold": {
"description": "Health to flag loans under (default 1.2).",
"type": "number",
"minimum": 1.01,
"maximum": 3
}
},
"required": [
"wallet"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡make_rescue_link(wallet, action, threshold)
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.
Input Schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The borrower address."
},
"action": {
"type": "string",
"enum": [
"repay",
"add"
],
"description": "repay = pay back USDC; add = post more of a stock already in the wallet as collateral."
},
"threshold": {
"description": "The health line to get back above (default 1.2).",
"type": "number",
"minimum": 1.01,
"maximum": 3
}
},
"required": [
"wallet",
"action"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Evidence