home / mcp / dritan mcp server
MCP server enabling personal agents to access market data, pricing, risk, and swap execution with local wallet signing.
Configuration
View docs{
"mcpServers": {
"amirdauti-dritan-mcp": {
"command": "npx",
"args": [
"@dritan/mcp@latest"
],
"env": {
"DRITAN_API_KEY": "YOUR_API_KEY"
}
}
}
}This MCP server lets personal agents access market data and execute swaps using the dritan-sdk while keeping your Solana wallet keys signing locally. It enables you to run a local, self-contained market data and trading gateway that your agents can connect to, with keys never leaving your machine.
To use this MCP server, install it on your machine, run it locally, and connect your client that supports MCP to the local server. Your client will request market data, prices, and risk metrics, and you can build, sign, and broadcast swaps using the local wallet signing capability. The server is designed for local development and personal use, with wallet keys kept on your machine and only public addresses or signatures shared with the client.
Prerequisites you must meet before installation: Node.js 20 or newer, the Solana keygen tool available in your PATH, and a DRITAN_API_KEY in your environment.
npm install
cp .env.example .envTo install this MCP server as a client-facing MCP using the package, run the following command. This installs the MCP runtime locally via npm and prepares it to run as an MCP server.
npx @dritan/mcp@latestAfter installation, you start development or production builds with the standard Node.js project flow. Run in development mode to test locally, or build the project and start the production server.
npm run dev
# or
npm run build && npm startCheck system prerequisites to ensure all required tools are installed and accessible in your environment.
Create a local Solana wallet for signing transactions without exposing private keys.
Retrieve the public address of the locally created wallet.
Query the SOL balance of the local wallet.
Fetch a snapshot of market data from available sources.
Query current token prices.
Retrieve risk metrics for tokens.
Get aggregated token data from multiple sources.
Stream a sample of live market data.
Build a swap request based on desired parameters.
Sign the swap locally and broadcast it through the Dritan network.
Build, sign locally, and broadcast the swap in one sequence.