home / mcp / dritan mcp server

Dritan MCP Server

MCP server enabling personal agents to access market data, pricing, risk, and swap execution with local wallet signing.

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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 .env

Additional setup steps to enable MCP behavior

To 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@latest

Startup flow

After 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 start

Available tools

system_check_prereqs

Check system prerequisites to ensure all required tools are installed and accessible in your environment.

wallet_create_local

Create a local Solana wallet for signing transactions without exposing private keys.

wallet_get_address

Retrieve the public address of the locally created wallet.

wallet_get_balance

Query the SOL balance of the local wallet.

market_get_snapshot

Fetch a snapshot of market data from available sources.

token_get_price

Query current token prices.

token_get_risk

Retrieve risk metrics for tokens.

token_get_aggregated

Get aggregated token data from multiple sources.

market_stream_sample

Stream a sample of live market data.

swap_build

Build a swap request based on desired parameters.

swap_sign_and_broadcast

Sign the swap locally and broadcast it through the Dritan network.

swap_build_sign_and_broadcast

Build, sign locally, and broadcast the swap in one sequence.