home / mcp / bonk mcp server

Bonk MCP Server

Provides Solana-backed token launch and trading capabilities for LetsBonk via an MCP server.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bjoernbonk-letsbonk_mcp_server": {
      "command": "uv",
      "args": [
        "--directory",
        "<PATH_TO_BONK_MCP_DIRECTORY>/bonk-mcp",
        "run",
        "bonk-mcp"
      ],
      "env": {
        "KEYPAIR": "<YOUR_SOLANA_KEYPAIR>",
        "RPC_URL": "https://api.mainnet-beta.solana.com"
      }
    }
  }
}

The bonk-mcp server adds Solana blockchain functionality to LetsBonk by enabling token launches and token trading on the LetsBonk launchpad. It runs as an MCP server that you can connect to from an MCP client to perform on-chain actions securely and programmatically.

How to use

You connect to the bonk-mcp server from your MCP client to perform token launches and trades on LetsBonk. Start the local MCP server instance with one of the provided runtime configurations, then point your MCP client at the corresponding stdio endpoint. Ensure you provide the required Solana credentials and RPC endpoint so the server can sign transactions and interact with the Solana network.

How to install

Prerequisites: you need a development environment with the MCP runtime tool installed. You will also provide a Solana keypair and a Solana RPC URL for the server to interact with the network.

Install steps - Prepare your environment variables and directory paths as described below - Start with the development runtime configuration to run the server locally - When ready for distribution, follow the publishing steps to prepare a package for the MCP ecosystem

Configuration

Configure the bonk-mcp server in your MCP client by adding a server entry. Two valid runtime configurations are shown below. Use the one that matches your preferred runtime tool.

"mcpServers": {
  "bonk_mcp_uv": {
    "command": "uv",
    "args": [
      "--directory",
      "<PATH_TO_BONK_MCP_DIRECTORY>/bonk-mcp",
      "run",
      "bonk-mcp"
    ],
    "env": {
      "KEYPAIR": "<YOUR_SOLANA_KEYPAIR>",
      "RPC_URL": "https://api.mainnet-beta.solana.com"
    }
  }
}
"mcpServers": {
  "bonk_mcp_uvx": {
    "command": "uvx",
    "args": [
      "bonk-mcp"
    ],
    "env": {
      "KEYPAIR": "<YOUR_SOLANA_KEYPAIR>",
      "RPC_URL": "https://api.mainnet-beta.solana.com"
    }
  }
}

Troubleshooting and notes

Since MCP servers run over stdio, debugging can be challenging. If you need interactive inspection, consider using the MCP Inspector to connect to the running process and view logs and events in real time.

Available tools

launch_token

Launch a new token on the LetsBonk launchpad, enabling it to be minted and traded within the LetsBonk ecosystem.

trade_token

Buy or sell a token on LetsBonk, facilitating on-chain transfers and liquidity interactions through the bonk-mcp server.