Loading languages...
AG

agent-kit-mcp-server

@sendaifun1580

A Solana Agent Kit implementation using the Model Context Protocol (MCP) for handling protocol operations on the Solana blockchain.

solana
blockchain
agent-kit

Markdown Content: solana-agent-kit/examples/agent-kit-mcp-server at v1-deprecated · sendaifun/solana-agent-kit · GitHub

===============

Skip to content Navigation Menu

Toggle navigation

Sign in

Appearance settings

  • Product
*   [GitHub Copilot Write better code with AI](https://github.com/features/copilot)
*   [GitHub Spark New Build and deploy intelligent apps](https://github.com/features/spark)
*   [GitHub Models New Manage and compare prompts](https://github.com/features/models)
*   [GitHub Advanced Security Find and fix vulnerabilities](https://github.com/security/advanced-security)
*   [Actions Automate any workflow](https://github.com/features/actions)

*   [Codespaces Instant dev environments](https://github.com/features/codespaces)
*   [Issues Plan and track work](https://github.com/features/issues)
*   [Code Review Manage code changes](https://github.com/features/code-review)
*   [Discussions Collaborate outside of code](https://github.com/features/discussions)
*   [Code Search Find more, search less](https://github.com/features/code-search)

Explore * Why GitHub * All features * Documentation * GitHub Skills * Blog

  • Solutions

By company size * Enterprises * Small and medium teams * Startups * Nonprofits

By use case * DevSecOps * DevOps * CI/CD * View all use cases

By industry * Healthcare * Financial services * Manufacturing * Government * View all industries

View all solutions

  • Resources

Topics * AI * DevOps * Security * Software Development * View all

Explore * Learning Pathways * Events & Webinars * Ebooks & Whitepapers * Customer Stories * Partners * Executive Insights

  • Open Source
*   [GitHub Sponsors Fund open source developers](https://github.com/sponsors)

*   [The ReadME Project GitHub community articles](https://github.com/readme)

Repositories * Topics * Trending * Collections

  • Enterprise
*   [Enterprise platform AI-powered developer platform](https://github.com/enterprise)

Available add-ons * GitHub Advanced Security Enterprise-grade security features * Copilot for business Enterprise-grade AI features * Premium Support Enterprise-grade 24/7 support

Search or jump to...

Search code, repositories, users, issues, pull requests...

Search

Clear

Search syntax tips

Provide feedback

We read every piece of feedback, and take your input very seriously.

  • [x] Include my email address so I can be contacted

Cancel Submit feedback

Saved searches

Use saved searches to filter your results more quickly

Name

Query

To see all available qualifiers, see our documentation.

Cancel Create saved search

Sign in

Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

{{ message }}

sendaifun/**solana-agent-kit**Public template

Additional navigation options

Collapse file tree

Files

v1-deprecated

Search this repository

  •     .github  
    
  •     .husky  
    
  •     docs  
    
  •     examples  
    
    •      agent-kit-langgraph  
      
    •      agent-kit-mcp-server  
      
      •       src  
        
      •     .gitignore  
        
      •     README.md  
        
      •     claude_desktop_config.json  
        
      •     package.json  
        
      •     pnpm-lock.yaml  
        
      •     tsconfig.json  
        
    •      agent-kit-nextjs-langchain  
      
    •      discord-bot-starter  
      
    •      market-making-agent  
      
    •      okx-dex-starter  
      
    •      orbofi-personality-engine  
      
    •      para-plugin-example  
      
    •      persistent-agent  
      
    •      tg-bot-starter  
      
    •      wormhole-nextjs-agent  
      
  •     guides  
    
  •     scripts  
    
  •     src  
    
  •     test  
    
  •   .env.example  
    
  •   .eslintrc  
    
  •   .gitignore  
    
  •   .lintstagedrc  
    
  •   .prettierignore  
    
  •   .prettierrc  
    
  •   CITATION.cff  
    
  •   CONTRIBUTING.md  
    
  •   LICENSE  
    
  •   README.md  
    
  •   SECURITY.md  
    
  •   ls.vitest.config.ts  
    
  •   package.json  
    
  •   pnpm-lock.yaml  
    
  •   tsconfig.json  
    

Breadcrumbs

  1. solana-agent-kit
  2. /examples

/ agent-kit-mcp-server

/

Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

Image 1: thearyanagthearyanag

feat: mcp example

success

Feb 16, 2025

218392c·Feb 16, 2025

History

History

Open commit details

This branch is 464 commits behindv2.

Breadcrumbs

  1. solana-agent-kit
  2. /examples

/ agent-kit-mcp-server

/

Top

Folders and files

Name Name Last commit message Last commit date
### parent directory ..
src src feat: mcp example Feb 16, 2025
.gitignore .gitignore feat: mcp example Feb 16, 2025
README.md README.md feat: mcp example Feb 16, 2025
claude_desktop_config.json claude_desktop_config.json feat: mcp example Feb 16, 2025
package.json package.json feat: mcp example Feb 16, 2025
pnpm-lock.yaml pnpm-lock.yaml feat: mcp example Feb 16, 2025
tsconfig.json tsconfig.json feat: mcp example Feb 16, 2025
View all files

README.md

Outline

Solana Agent Kit MCP Server

SendAI

A Solana Agent Kit implementation using the Model Context Protocol (MCP) for handling protocol operations on the Solana blockchain.

Features

  • Supports all actions from the Solana Agent Kit
  • MCP server implementation for standardized interactions
  • Environment-based configuration

Prerequisites

  • Node.js (v16 or higher recommended)
  • pnpm or yarn or npm
  • Solana wallet with private key
  • Solana RPC URL

Installation

undefinedshell pnpm install undefined

Configuration

  1. Configure the claude_desktop_config.json file by editing the env fields.

undefineddotenv SOLANA_PRIVATE_KEY=your_private_key_here RPC_URL=your_solana_rpc_url_here undefined

  1. Change the Claude Desktop MCP server settings:

For MacOS:

undefinedshell code ~/Library/Application\ Support/Claude/claude_desktop_config.json undefined

For Windows:

undefinedshell code $env:AppData\Claude\claude_desktop_config.json undefined

The final configuration should look like the following (replace the path with your absolute project path):

undefinedjson { "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" ] } } } undefined

Note: Make sure to restart Claude Desktop after updating the configuration and building the project.

Building the Project

To build the project, run:

undefinedshell pnpm run build undefined

This will compile the TypeScript code and set the appropriate permissions for the executable.

Project Structure

  • src/ - Source code directory
  • src/index.ts - Main entry point implementing the MCP server

Dependencies

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Footer

© 2025 GitHub,Inc.

Footer navigation

You can’t perform that action at this time.

# mcpServer Config

{
  "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"
      ]
    }
  }
}

# stdio

node src/index.ts
Transport:
stdio
Language:
typescript
Created: 11/17/2024
Updated: 12/18/2025