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
)[SECRET_KEY_ARRAY_NUMBERS]
- Your Solana wallet secret key as a JSON array of numbersdevnet
- The default Solana cluster (can bedevnet
ormainnet
)
Wallet Configuration Options
OctoMCP supports multiple ways to provide wallet information:
Environment variables (as shown in the config above)
Command line arguments:
--wallet-public-key
and--wallet-secret-key
Config file: Create a
solana-config.json
file with wallet informationAuto-generated: If no wallet is provided, one will be generated automatically on deployment
Getting Your Wallet Secret Key
For security reasons, you need to provide your wallet's secret key as an array of numbers. You can export this from most Solana wallets or use the Solana CLI:
⚠️ IMPORTANT SECURITY WARNING ⚠️ Never share your secret key with anyone. Keep your MCP configuration file secure and never commit it to public repositories.
Last updated