Skip to main content
Glama
akka-finance-mcp-server

akka-finance-mcp-server

Official
by Akka-Finance

@akka-finance/mcp-server

MCP server for the AKKA Finance DEX aggregator — swap quotes, routes, and execution across EVM chains.

npm version License: MIT

Prerequisites

An AKKA API key is required. Get one at docs.akka.finance/authentication.

Related MCP server: web3agent

Install

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "akka-dex": {
      "command": "npx",
      "args": ["-y", "@akka-finance/mcp-server"],
      "env": {
        "AKKA_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code

claude mcp add akka-dex -e AKKA_API_KEY=your-api-key -- npx -y @akka-finance/mcp-server

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "akka-dex": {
      "command": "npx",
      "args": ["-y", "@akka-finance/mcp-server"],
      "env": {
        "AKKA_API_KEY": "your-api-key"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "akka-dex": {
      "command": "npx",
      "args": ["-y", "@akka-finance/mcp-server"],
      "env": {
        "AKKA_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Tool

Description

akka_get_quote

Get the best swap quote across 25+ DEXes

akka_get_swap

Build an unsigned swap transaction

akka_dex_compare

Compare quotes across individual DEX pools

akka_get_spender

Get the router contract address for token approval

akka_get_approve_tx

Build an ERC-20 approve transaction

akka_check_allowance

Check current token spending allowance

akka_list_tokens

List tradeable tokens on a chain

akka_get_token

Get token details by address

akka_list_chains

List all supported chains

Supported Chains

Chain ID

Network

Native Token

999

HyperEVM (Hyperliquid)

HYPE

1

Ethereum

ETH

8453

Base

ETH

42161

Arbitrum

ETH

56

BNB Chain

BNB

Configuration

Configuration via environment variables or CLI arguments:

Env Variable

CLI Arg

Default

Description

AKKA_API_BASE

--api-base

https://api.akka.finance

AKKA API base URL

AKKA_API_KEY

--api-key

required

API key for AKKA Finance API

AKKA_MCP_TRANSPORT

--transport

stdio

Transport: stdio or http

AKKA_MCP_PORT

--port

3100

Port for HTTP transport

AKKA_TIMEOUT

--timeout

15000

Request timeout in ms

HTTP Transport

For remote/web-based agents:

npx @akka-finance/mcp-server --transport=http --port=3100

Exposes a Streamable HTTP endpoint at http://localhost:3100/mcp.

Base MCP Skill Plugin

A Base MCP skill plugin for token swaps on Base is included at skills/akka-swap.md. Drop it into your Base MCP skills directory to enable AKKA-powered swaps through Base's smart wallet flow.

Development

git clone https://github.com/Akka-Finance/akka-mcp-server.git
cd akka-mcp-server
npm install
npm run dev        # Run with tsx (hot reload)
npm run build      # Compile TypeScript
npm start          # Run compiled output

Testing with MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

How It Works

This MCP server is a thin client that calls the AKKA Finance REST API. It does not hold private keys or execute transactions. All swap/approve tools return unsigned transaction data that the user must sign and broadcast separately.

AI Agent (Claude, Cursor, etc.)
  ↕ MCP Protocol (stdio or HTTP)
AKKA MCP Server (this package)
  ↕ HTTP REST
AKKA Finance API
  ↕ On-chain
25+ DEXes across 7 EVM chains

License

MIT

Available Tools

9 tools
akka_check_allowanceA
Read-onlyIdempotent

Check how many tokens the AKKA Router is currently allowed to spend from a wallet. Use this to determine if an approval transaction is needed before swapping. Returns "0" if no approval has been granted. Native token swaps (src = 0xeee...eee) never need approval.

Inputs: chainId (required), tokenAddress (required), walletAddress (required).

akka_dex_compareA
Read-onlyIdempotent

Compare swap quotes across individual DEX pools for a token pair. Returns AKKA's aggregated quote alongside the top 3 individual pool quotes, showing how the aggregated route outperforms single-pool swaps. Useful for explaining the routing advantage to users.

Inputs: chainId (required), src (required), dst (required), amount (required).

akka_get_approve_txA
Read-onlyIdempotent

Generate an ERC-20 approve transaction for the AKKA Router. Returns unsigned transaction data (to, data, value) to be signed and sent. Required before swapping ERC-20 tokens (not needed for native tokens). If amount is omitted, grants unlimited approval.

Inputs: chainId (required), tokenAddress (required), amount.

akka_get_quoteA
Read-onlyIdempotent

Get the best swap quote from AKKA DEX aggregator. Returns the expected output amount for swapping tokens on supported EVM chains. Use this to check prices before executing a swap. Amounts are in wei (the token's smallest unit). Use akka_list_chains to find valid chain IDs.

Inputs: chainId (required), src (required), dst (required), amount (required), +2 more.

akka_get_spenderA
Read-onlyIdempotent

Get the AKKA Router contract address that needs token approval before swapping ERC-20 tokens. Users must approve this address to spend their tokens. Not needed for native token swaps.

Inputs: chainId (required).

akka_get_swapA
Read-onlyIdempotent

Generate a ready-to-sign swap transaction via AKKA DEX aggregator. Returns complete unsigned transaction data (to, data, value, gas) that the user must sign and broadcast. IMPORTANT: This does NOT execute the swap — it only builds the transaction. Use akka_get_quote first to check the expected output amount.

Inputs: chainId (required), src (required), dst (required), amount (required), +4 more.

akka_get_tokenA
Read-onlyIdempotent

Get detailed information about a specific token by its contract address, including symbol, name, decimals, logo, verification status, and USD price.

Inputs: chainId (required), address (required).

akka_list_chainsA
Read-onlyIdempotent

List all blockchain networks supported by AKKA DEX aggregator, including chain IDs, network names, and native token symbols. Use this when a user asks about supported chains or needs to find the right chain ID.

Inputs: _.

akka_list_tokensA
Read-onlyIdempotent

List available tokens for swapping on a given chain. Returns token symbols, names, addresses, decimals, USD prices, and verification status. Use this to discover tradeable tokens or look up a token's contract address by symbol.

Inputs: chainId (required), page, limit, verified.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct operation: checking allowances, comparing DEX pools, generating approvals, getting quotes, retrieving spender address, building swap transactions, and querying tokens/chains. There is no overlap in functionality.

    Naming Consistency5/5

    All tool names follow the consistent pattern 'akka_<verb>_<noun>' with verbs like check, compare, get, list, and descriptive nouns. No naming style variations.

    Tool Count5/5

    With 9 tools, the server covers essential operations for a DEX aggregator: listing chains/tokens, querying quotes, handling approvals, and building swap transactions. The count is balanced and not excessive.

    Completeness5/5

    The tool set covers the full workflow from discovering supported chains and tokens, checking allowances, obtaining quotes, generating approval transactions, to building swap transactions. The only missing piece (broadcasting) is intentionally left to the user.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers