The bonk-mcp server implements Solana blockchain functionality for the LetsBonk launchpad, enabling token launching and trading on letsbonk.fun.
The bonk-mcp server can be integrated with Claude Desktop through the MCP servers configuration. This requires properly setting up your environment with the necessary parameters.
Depending on your operating system, locate the Claude Desktop configuration file at:
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
You'll need to add the bonk-mcp server to your configuration file. There are two methods for configuration, depending on whether you're using a published or unpublished server.
For the published version of bonk-mcp:
"mcpServers": {
"bonk-mcp": {
"command": "uvx",
"args": [
"bonk-mcp"
],
"env": {
"KEYPAIR": "<YOUR_SOLANA_KEYPAIR>",
"RPC_URL": "https://api.mainnet-beta.solana.com"
}
}
}
If you're working with an unpublished version:
"mcpServers": {
"bonk-mcp": {
"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"
}
}
}
Both configuration methods require these environment variables:
KEYPAIR
: Your Solana keypair for transactionsRPC_URL
: Solana RPC endpoint (e.g., https://api.mainnet-beta.solana.com)Once properly configured, the bonk-mcp server enables two main functionalities:
You can launch any token on the LetsBonk platform (letsbonk.fun). This allows you to create and deploy your own tokens on the Solana blockchain through Claude's interface.
Buy and sell tokens on letsbonk.fun directly through Claude. The MCP server handles the necessary Solana blockchain interactions to execute your trades.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.