मुख्य सामग्री पर जाएं
नमूना ऐप्स पर वापस जाएँ

Solana एमसीपी सर्वर

A basic Solana MCP server that gives tools like Claude Desktop (or Cursor) the ability to query the Solana blockchain directly. This integration will enables you to perform tasks like checking wallet balances, viewing token accounts, retrieving transaction details, and analyzing account information—all from the power of your LLM client.

फ्रंटएंड फ्रेमवर्क/लाइब्रेरी:
Solana किट
भाषा:
टाइपप्रति
बिल्ड टूल/डेवलपमेंट सर्वर:
Model Context Protocol
नमूना ऐप पूर्वावलोकन

अवलोकन

The Model Context Protocol (MCP) allows you to extend AI assistants like Claude with custom tools that interact with external data sources and services. In this guide, you'll build a Solana MCP server that gives tools like Claude Desktop (or Cursor) the ability to query the Solana blockchain directly. This integration will enable Claude to perform tasks like checking wallet balances, viewing token accounts, retrieving transaction details, and analyzing account information—all while you maintain control over these interactions.

The demo uses:

Supporting resources:

शुरू करना

Install Dependencies

Open the project directory:

cd AI/solana-mcp

Then, install the dependencies:

NPM स्थापित करना
# या
धागा
# या
पीएनपीएम स्थापित करना
# या
बन इंस्टॉल

Build the Server:

Then, build the server:

npm run build
# or
yarn build
# or
pnpm build
# or
bun build

Setup Claude Desktop

Update your claude_desktop_config.json file with the content from example Claude desktop config. You can find instructions here.

Make sure to update SOLANA_RPC_ENDPOINT with your Quicknode RPC endpoint. You can get one free here.

Make sure your args pass in the absolute path to the built server (for us it is /YOUR_PATH/build/index.js).

Relaunch Claude Desktop after setting up your config file.

Now you can prompt Claude with commands like:

  • What is the Wallet balance of <wallet_address>?
  • What is the token balance of <wallet_address>?
  • What's the status of the Solana network?
योगदान और प्रतिक्रिया
हमें आपकी प्रतिक्रिया सुनकर खुशी होगी और इस सैंपल ऐप में किसी भी तरह के योगदान का हम स्वागत करते हैं!
समस्याओं की रिपोर्ट करने या प्रतिक्रिया साझा करने के लिए, GitHub में एक समस्या खोलें। प्रश्न-मार्गदर्शिका-उदाहरण भंडार।
योगदान देने के लिए, इन चरणों का पालन करें:
  1. रिपॉजिटरी को फोर्क करें
  2. एक फीचर ब्रांच बनाएं:
    git checkout -b feature/amazing-feature
  3. अपने बदलावों को सेव करें:
    git commit -m "अद्भुत सुविधा जोड़ें"
  4. अपनी शाखा को आगे बढ़ाएं:
    git push origin feature/amazing-feature
  5. एक पुल रिक्वेस्ट खोलें।
और भी सैंपल ऐप्स देखें