add-portfolio-transaction
Add a transaction to a manual portfolio.
Track coin prices and market data, read wallet balances across every supported network, and see a CoinStats portfolio's P/L — or write a missing trade back into it.
LABSCO SUMMARY
The coin and news tools are public reference reads, but the wallet and portfolio tools address balances you own: get-wallet-balances sweeps every supported network for one address, and add-portfolio-transaction writes into a manual portfolio rather than only reporting on it. save-share-token caches the portfolio share token locally between sessions, so it is supplied once instead of on every call. Transaction history depends on a sync you start yourself — get-wallet-transactions expects transactions-sync to have run first, and returns whatever the last sync captured.
A CoinStats API client: 30 tools spanning market data, on-chain wallet balances, exchange portfolio connections, portfolio performance and crypto news.
A CoinStats API key in COINSTATS_API_KEY. Portfolio calls are addressed by shareToken and exchange calls by connectionId, both of which come from your CoinStats account rather than from the tool set.
One command — npx @coinstats/coinstats-mcp
USE CASES
One address is swept across every supported network for balances, then a sync is started so the transaction history that comes back is current rather than stale.
Holdings and recorded transactions are read first, and the missing fill is written into the manual portfolio with its price, fee and date rather than left as a discrepancy.
Tax and performance questions need the price on a date, not today's. The average for a timestamp and the price on the venue you actually used are both available.
The coin list filters on price change, market cap, rank, supply and risk score in one call, so the shortlist is built by the query rather than by scrolling.
A chart shows that something happened; the news tools say what. Articles can be pulled by date range, by type, or from a named source.
Coins sitting on an exchange are invisible to an address lookup. The exchange connections report their own balances and transaction history separately.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add-portfolio-transactionAdd a transaction to a manual portfolio.
get-blockchainsGet a list of supported blockchains by CoinStats.
get-coin-avg-priceGet the historical average price for a specific cryptocurrency based on its unique identifier and a specific date.
get-coin-by-idGet detailed information about a specific cryptocurrency based on its unique identifier.
get-coin-chart-by-idGet chart data for a specific cryptocurrency based on its unique identifier, specifying different time ranges.
get-coin-exchange-priceGet the historical price data for a specific cryptocurrency on a particular exchange.
get-coinsGet comprehensive data about all cryptocurrencies: Price, market cap, and volume. Price changes (1h, 24h, 7d). Supply information. Trading metrics. Social links and metadata.
get-currenciesGet a list of fiat currencies supported by CoinStats.
get-exchange-balanceGet the balance data for a provided Exchange.
get-exchange-sync-statusGet the syncing status of the exchange portfolio.
get-exchange-transactionsGet transaction data for a specific exchange.
get-exchangesGet a list of supported exchange portfolio connections by CoinStats.
get-fiat-currenciesGet a list of fiat currencies supported by CoinStats.
get-market-capGet global market data.
get-newsGet news articles with pagination.
get-news-by-idGet news by id.
get-news-by-typeGet news articles based on a type.
get-news-sourcesGet news sources.
get-portfolio-chartGet portfolio performance chart data.
get-portfolio-coinsGet a list of portfolio coins with P/L and other data displayed on CoinStats web.
get-portfolio-transactionsGet a list of portfolio transactions.
get-share-tokenRetrieves the saved portfolio share token from local cache.
get-ticker-exchangesGet a list of supported exchanges.
get-ticker-marketsGet a list of tickers for a specific cryptocurrency across different exchanges.
get-wallet-balanceGet the balance data for a provided wallet address on a specific blockchain network.
get-wallet-balancesGet the balance data for a provided wallet address on all CoinStats supported networks.
get-wallet-sync-statusGet the syncing status of the wallet with the blockchain network.
get-wallet-transactionsGet transaction data for a specific wallet. Ensure transactions are synced by calling PATCH /transactions first.
save-share-tokenSaves the provided portfolio share token to a local cache for future use across sessions.
transactions-syncInitiate the syncing process to update transaction data for a specific wallet.
BEFORE YOU INSTALL
30 tools when we connected. Four tools change something: add-portfolio-transaction, transactions-sync, get-share-token and save-share-token. The hosted OAuth URL needs no key; the self-hosted stdio server needs COINSTATS_API_KEY.
CONTEXT COST
Rated by the size of the 30 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx @coinstats/coinstats-mcphttps://mcp.coinstats.app/mcpAdd this hosted endpoint to your MCP client.
Settings → Connectors → Add custom connector, paste https://mcp.coinstats.app/mcp and click Add; a browser opens at coinstats.app/openapi/consent to approve
claude mcp add coinstats --transport http https://mcp.coinstats.app/mcpcodex mcp add coinstats --url https://mcp.coinstats.app/mcp
codex mcp login coinstats{
"mcpServers": {
"coinstats": {
"command": "npx",
"args": [
"-y",
"@coinstats/coinstats-mcp"
],
"env": {
"COINSTATS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}{
"mcpServers": {
"coinstats": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"COINSTATS_API_KEY",
"coinstats/coinstats-mcp"
],
"env": {
"COINSTATS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}