Installation
Installing OctoMCP
Prerequisites
Node.js (v16 or higher)
npm or yarn
A Solana wallet with some SOL for transaction fees
Build from source
Setup
Build the project to generate the
build
folder:
Configure your AI assistant's MCP host to use OctoMCP by creating a configuration file (e.g.,
claude_desktop_config.json
):
Replace the placeholders:
/path/to/your/octomcp/build/index.js
- The full path to the built index.js fileYOUR_WALLET_PUBLIC_KEY
- Your Solana wallet public key (e.g.,GsAqi6PLSjfDX271Rf3u8wtecidWEpYoYFswmG9wF4QW
)YOUR_BS58_PRIVATE_KEY
- Your Solana wallet private key in BS58 format (see instructions below)devnet
- The default Solana cluster (can bedevnet
ormainnet
)
Getting Your BS58 Private Key
From Phantom Wallet
1)Open Phantom 2)Click the gear icon 3)Select Manage Accounts 4)Choose your wallet 5)Click Show Private Key 6)Enter your password 7)Copy the private key and paste it into the OctoMCP config
From Solflare Wallet
Open Solflare wallet
Click on your wallet name at the top
Click "Export Private Key"
Enter your password
Copy the private key (this is in BS58 format)
From Solana CLI Keypair
If you have a Solana CLI keypair file, you can convert it to BS58 format:
From Secret Key Array (Legacy Support)
If you have your secret key as an array of numbers, you can convert it to BS58:
Security Best Practices
⚠️ IMPORTANT SECURITY WARNING ⚠️
Never share your private key with anyone
Keep your MCP configuration file secure and never commit it to public repositories
Consider using environment variables instead of hardcoding keys in config files
Use devnet for testing before deploying to mainnet
Regularly rotate your keys if they may have been compromised
Environment Variables Setup
For enhanced security, you can set environment variables instead of putting keys in config files:
Then use a simpler config file:
Last updated