Dritan MCP
Enables local Solana wallet management and transaction signing, allowing users to check balances, retrieve token prices and risk data, and build, sign, and broadcast swaps on the Solana blockchain.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dritan MCP Swap 0.1 SOL for USDC and execute the transaction"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dritan-mcp
MCP server for personal agents to use dritan-sdk for market data and swap execution, with local Solana wallet signing.
Requirements
Node.js 20+
solana-keygenavailable inPATHOptional: Dritan API key (
DRITAN_API_KEY) for market/swap tools.For paid onboarding without an existing key, use x402 tools.
Related MCP server: Armor Crypto MCP
Setup
npm install
cp .env.example .envInstall As MCP (npx)
npx @dritan/mcp@latestCodex example:
codex mcp add dritan npx \"@dritan/mcp@latest\"Run
npm run dev
# or
npm run build && npm startTools
system_check_prereqsauth_statusauth_set_api_keyauth_clear_api_keywallet_create_localwallet_get_addresswallet_get_balancewallet_transfer_solx402_get_pricingx402_create_api_key_quotex402_create_api_keydritan_healthmarket_get_snapshottoken_searchtoken_get_pricetoken_get_metadatatoken_get_risktoken_get_first_buyerstoken_get_aggregatedtoken_get_deployer_statstoken_get_ohlcvtoken_get_ohlcv_chartwallet_get_performancewallet_get_performance_chartwallet_get_token_performancewallet_get_portfolio_chartwallet_get_portfolio_chart_visualwallet_get_summarywallet_get_trade_historywallet_get_holdingswallet_get_holdings_chartwallet_get_holdings_pagemarket_stream_samplewallet_stream_sampleths_healthths_get_scoreths_get_score_tokens_getths_get_score_tokens_postths_get_top_walletsswap_buildswap_sign_and_broadcastswap_build_sign_and_broadcast
Notes
Wallets default to the current working directory (
process.cwd()).Private keys never leave local files; only public address/signature are returned.
swap_sign_and_broadcastsigns locally, then broadcasts via Dritan.auth_set_api_keyactivates a key for the running MCP process without restart and persists it to a local auth store.auth_set_api_keyand successfulx402_create_api_keyresponses include a capability summary so agents can immediately guide users to next actions.Agent onboarding without an active API key should use x402-first flow (
wallet_create_localin current directory -> share wallet + backup file path -> user chooses SOL amount and funds agent wallet -> if no key exists usex402_create_api_key_quote->wallet_transfer_sol->x402_create_api_key).Free key at
https://dritan.devis fallback only if the user declines funding or x402 cannot proceed.x402_create_api_keyauto-activates returned keys and persists them locally for restart recovery.Default auth store path is
.dritan-mcp/auth.jsonunder current working directory; override withDRITAN_MCP_AUTH_FILE.Use
auth_clear_api_keyto remove in-memory + persisted key state (and optionally clear process env key).token_get_ohlcv_chartreturns ready-to-send markdown image output (raw chart URL fields are intentionally omitted to force inline embedding).token_get_ohlcv_chartsupportschartType: "line-volume" | "candlestick"(default iscandlestick).token_get_ohlcv_chartdefaults tomaxPoints: 30; set highermaxPointsonly when users explicitly ask for more history.Wallet visual chart workflow:
wallet_get_holdings_chartfor balance allocation (token distribution).wallet_get_portfolio_chart_visualfor portfolio equity curve.wallet_get_performance_chartfor PnL history/summary/token-level bars depending on available fields.For all chart tools, agents should send the returned
markdownfield directly (no plain URL output).ths_get_top_walletsreturns a paginated leaderboard of THS-ranked wallets (page,limit) for smart-wallet discovery workflows.Ticker workflow for chart requests:
token_search-> extract mint ->token_get_ohlcvortoken_get_ohlcv_chart.If users ask for
$WIFstyle symbols, always resolve mint withtoken_searchfirst.If Solana CLI is missing, run
system_check_prereqsand follow returned install steps.
Available Tools
42 toolsauth_clear_api_keyA
Clear the active in-memory API key and delete the persisted auth file. Optionally clear DRITAN_API_KEY in this process env.
Inputs: clearEnv.
auth_set_api_keyA
Set the active Dritan API key for this running MCP process and persist it locally for restart recovery.
Inputs: apiKey (required).
auth_statusA
Show current API key status for this MCP session (active source, preview, and onboarding options).
Inputs: no named parameters.
dritan_healthB
Check data plane health endpoint via Dritan SDK.
Inputs: no named parameters.
market_get_snapshotC
Fetch token market snapshot via Dritan SDK (price/metadata/risk/first-buyers/aggregated).
Inputs: mint (required), mode.
market_stream_sampleB
Open a DEX websocket stream and collect events for a short duration.
Inputs: dex (required), durationMs, maxEvents.
swap_buildC
Build an unsigned swap transaction with Dritan.
Inputs: inputMint (required), outputMint (required), amount (required), walletPath, +6 more.
swap_build_sign_and_broadcastC
Convenience tool: build swap, sign locally with wallet, and broadcast in one call.
Inputs: walletPath (required), inputMint (required), outputMint (required), amount (required), +5 more.
swap_sign_and_broadcastA
Sign a base64 swap transaction with a local wallet and broadcast through Dritan.
Inputs: walletPath (required), transactionBase64 (required).
system_check_prereqsA
Check whether required local binaries are installed (currently solana-keygen) and return install commands.
Inputs: no named parameters.
ths_get_scoreC
Fetch THS score for a wallet.
Inputs: wallet (required), debug, breakdown.
ths_get_score_tokens_getC
Fetch THS score for selected token mints using GET.
Inputs: wallet (required), tokenMints (required), debug, breakdown.
ths_get_score_tokens_postC
Fetch THS score for selected token mints using POST.
Inputs: wallet (required), tokenMints (required), debug, breakdown.
ths_get_top_walletsB
Fetch paginated top wallets ranked by THS score.
Inputs: page, limit.
ths_healthB
Check Meteora THS service health.
Inputs: no named parameters.
token_get_aggregatedC
Fetch aggregated token data via Dritan (same as market_get_snapshot mode=aggregated).
Inputs: mint (required).
token_get_deployer_statsC
Fetch token deployer stats via Dritan.
Inputs: mint (required).
token_get_first_buyersC
Fetch first buyers via Dritan.
Inputs: mint (required).
token_get_metadataC
Fetch token metadata via Dritan.
Inputs: mint (required).
token_get_ohlcvC
Fetch OHLCV candles for a token and timeframe.
Inputs: mint (required), timeframe (required), timeTo.
token_get_ohlcv_chartA
Build embeddable chart markdown from token OHLCV candles so agents can render the actual chart inline in chat (resolve ticker with token_search first). Supports line-volume or candlestick charts.
Inputs: mint (required), timeframe (required), timeTo, chartType, +4 more.
token_get_priceC
Fetch token price via Dritan (same as market_get_snapshot mode=price).
Inputs: mint (required).
token_get_riskA
Fetch token risk via Dritan (same as market_get_snapshot mode=risk).
Inputs: mint (required).
token_searchA
Search tokens by ticker/name and resolve mint addresses (first step for ticker-based chart requests).
Inputs: query (required), limit, cursor, page.
wallet_create_localB
Create a local Solana wallet using solana-keygen and return path + public address.
Inputs: name, walletDir.
wallet_get_addressA
Get the public address for a local Solana wallet file.
Inputs: walletPath (required).
wallet_get_balanceA
Get SOL balance for a local wallet address from a Solana RPC endpoint.
Inputs: walletPath (required), rpcUrl.
wallet_get_holdingsD
Fetch wallet holdings via Dritan.
Inputs: wallet (required).
wallet_get_holdings_chartC
Build embeddable holdings allocation chart markdown from wallet holdings so agents can render token balance distribution inline.
Inputs: wallet (required), top, width, height.
wallet_get_holdings_pageC
Fetch paginated wallet holdings via Dritan.
Inputs: wallet (required), page (required).
wallet_get_performanceD
Fetch wallet performance via Dritan.
Inputs: wallet (required), showHistoricPnL, holdingCheck, hideDetails.
wallet_get_performance_chartB
Build embeddable wallet PnL chart markdown (history when available, otherwise summary/token PnL bars) for graphical performance views.
Inputs: wallet (required), showHistoricPnL, holdingCheck, hideDetails, +4 more.
wallet_get_portfolio_chartC
Fetch wallet portfolio chart series via Dritan.
Inputs: wallet (required), days.
wallet_get_portfolio_chart_visualB
Build embeddable line-chart markdown for wallet portfolio history so agents can render a graphical portfolio view inline.
Inputs: wallet (required), days, maxPoints, width, +1 more.
wallet_get_summaryC
Fetch basic wallet summary via Dritan.
Inputs: wallet (required).
wallet_get_token_performanceC
Fetch wallet performance for a specific token mint via Dritan.
Inputs: wallet (required), tokenMint (required).
wallet_get_trade_historyC
Fetch wallet trade history via Dritan.
Inputs: wallet (required), cursor.
wallet_stream_sampleC
Open the wallet websocket stream and collect events for selected wallets.
Inputs: wallets (required), durationMs, maxEvents.
wallet_transfer_solB
Send SOL from a local wallet to a destination wallet (used in x402 paid key flow).
Inputs: walletPath (required), toAddress (required), lamports, sol, +1 more.
x402_create_api_keyC
Claim a paid x402 API key using quoteId and payment transaction signature.
Inputs: quoteId (required), paymentTxSignature (required), payerWallet, name, +1 more.
x402_create_api_key_quoteA
Create an x402 payment quote for a time-limited API key (returns quoteId, receiverWallet, and exact SOL amount).
Inputs: durationMinutes (required), name, payerWallet, scopes.
x402_get_pricingB
Get x402 pricing and receiver wallet for paid time-limited API keys.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 42 tools
Several tools have overlapping purposes (e.g., market_get_snapshot vs token_get_aggregated, price, risk; ths_get_score_tokens_get vs post; wallet_get_holdings vs wallet_get_holdings_page). Multiple chart tools could be consolidated. This creates ambiguity for an agent.
Tools mostly follow a domain_verb_noun pattern (e.g., auth_set_api_key, token_get_metadata). However, there are minor inconsistencies like ths_get_score_tokens_get vs ths_get_score_tokens_post where the verb order differs. Overall predictable.
42 tools is on the high side, but they cover a broad domain (auth, market, swaps, tokens, wallets, x402). However, several near-duplicates inflate the count (e.g., chart tools, HTTP method variants). Could be streamlined to ~30 tools.
The tool surface covers key operations for the Dritan ecosystem: authentication, market data, token metadata, swaps, wallet management, THS scoring, and x402 payments. Minor gaps exist, such as no tool to list all tokens or manage swap orders beyond building, but core workflows are supported.
Maintenance
Related MCP Connectors
Solana swaps with local signing, confirmed receipts, trading volume and filtered live trade data.
Non-custodial DeFi tools for AI agents on Solana: swaps, perps, lending, staking, equities.
Safe Solana swaps for AI agents with risk checks, unsigned transactions, x402, and 3-bp fees.
Crypto data for AI agents: prices, Solana wallets, token risk, swap quotes. Pay per call via x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.21MIT
- AlicenseCqualityDmaintenanceEnables AI agents to interact with cryptocurrency ecosystems through wallet management, trading operations (swaps, DCA, limit orders), staking, and multi-chain support starting with Solana.37GPL 3.0

trade-router-mcpofficial
AlicenseBqualityDmaintenanceNon-custodial Solana swap & limit order engine for AI agents. 21 tools - swap, limit, trailing, TWAP, DCA, combo orders - across Raydium, PumpSwap, Orca, Meteora. Jito MEV-protected execution. Ed25519-verified server messages. Private key never leaves the process.21183 npm3MIT- AlicenseAqualityDmaintenanceEnables AI agents to read chain data, execute transactions, swap tokens, and manage wallets on Solana through 38 tools across 7 modules. Supports write operations with a private key and includes built-in prompts for common workflows.381MIT