A Solana Agent Kit implementation using the Model Context Protocol (MCP) for handling protocol operations on the Solana blockchain.
A Solana Agent Kit implementation using the Model Context Protocol (MCP) for handling protocol operations on the Solana blockchain.
pnpm install
claude_desktop_config.json
file by editing the env
fields.SOLANA_PRIVATE_KEY=your_private_key_here
RPC_URL=your_solana_rpc_url_here
For MacOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
For Windows:
code $env:AppData\Claude\claude_desktop_config.json
The final configuration should look like the following (replace the path with your absolute project path):
{
"mcpServers": {
"agent-kit": {
"command": "node",
"env": {
"RPC_URL": "your_solana_rpc_url_here",
"SOLANA_PRIVATE_KEY": "your_private_key_here"
},
"args": [
"/ABSOLUTE/PATH/TO/YOUR/PROJECT"
]
}
}
}
Note: Make sure to restart Claude Desktop after updating the configuration and building the project.
To build the project, run:
pnpm run build
This will compile the TypeScript code and set the appropriate permissions for the executable.
src/
- Source code directorysrc/index.ts
- Main entry point implementing the MCP serverISC
Contributions are welcome! Please feel free to submit a Pull Request.