AI-Native Development: Use the Helius MCP server to give AI tools access to our documentation, enabling contextual code generation and intelligent assistance.

What is MCP?

Model Context Protocol (MCP) is a standard that allows AI applications to access external documentation and data sources. Think of it as a bridge that lets AI tools like Claude, Cursor, and Windsurf read your documentation in real-time to provide better, more accurate assistance.

Real-time Context

AI tools can query live documentation and API specifications for accurate, up-to-date information

Code Generation

AI generates working code examples using current API methods and best practices from our docs

Interactive Development

Ask questions about Helius APIs and get contextual answers based on our documentation

Seamless Integration

Works with popular AI-powered IDEs and development tools

How Helius MCP Works

The Helius MCP server automatically provides AI tools with access to:

  • Complete API Documentation: All Helius API methods, parameters, and examples
  • Code Examples: Working implementations for common use cases
  • Best Practices: Recommended patterns for using Helius services
  • Real-time Updates: Always current with the latest documentation changes

Automatic Generation: Our MCP server is automatically generated from our documentation and API specifications, ensuring it’s always up-to-date with the latest features and changes.

Getting Started

1

Install MCP Support

First, make sure your AI tool supports MCP. Popular options include:

  • Cursor: Built-in MCP support
  • Windsurf: Native MCP integration
  • Claude Desktop: MCP server support
  • VS Code: via MCP extensions
2

Add Helius MCP Server

Install the Helius MCP server in your development environment:

npx mint-mcp add helius

This automatically configures your MCP client to access Helius documentation for AI assistance.

3

Start Using AI with Helius Context

Open your AI-powered IDE and start asking questions about Helius APIs. The AI will automatically query our MCP server for accurate, contextual documentation to help generate code.

Quick Test

Want to see it in action? Here’s the fastest way to test the Helius MCP integration:

  1. Open Cursor IDE
  2. Open a terminal and run: npx mint-mcp add helius
  3. Open Agent mode (Ctrl/Cmd + K)
  4. Ask: “Write a Node.js script for sending transactions using Helius”
  5. The AI will reference our documentation via MCP to generate accurate code
  6. Watch as the AI generates working code using current Helius API patterns from our docs

Use Cases

Example Workflows

Building a Transaction Monitor

// Ask your AI: "Create a transaction monitor using Helius websockets"
// The AI will generate something like this with current API patterns:

const WebSocket = require('ws');

// Create WebSocket connection
const ws = new WebSocket('wss://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY');

ws.on('open', function open() {
  console.log('WebSocket connected');
  
  // Subscribe to account changes
  const request = {
    jsonrpc: "2.0",
    id: 1,
    method: "accountSubscribe",
    params: [
      "YOUR_WALLET_ADDRESS",
      {
        encoding: "jsonParsed",
        commitment: "confirmed"
      }
    ]
  };
  
  ws.send(JSON.stringify(request));
});

ws.on('message', function incoming(data) {
  const message = JSON.parse(data.toString());
  console.log('Account update:', message);
});

NFT Portfolio Tracker

// Ask: "Build an NFT portfolio tracker using Helius DAS API"
// Get working code with current method signatures:

const getNFTPortfolio = async (walletAddress: string) => {
  const response = await fetch(`https://mainnet.helius-rpc.com/?api-key=${API_KEY}`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: 'my-id',
      method: 'getAssetsByOwner',
      params: {
        ownerAddress: walletAddress,
        page: 1,
        limit: 1000
      },
    }),
  });
  
  const data = await response.json();
  return data.result;
};

Advanced Features

The MCP server provides documentation context so AI tools can make intelligent suggestions:

  • API Method Selection: AI recommends the most appropriate Helius API based on our docs
  • Error Handling: AI suggests proper error handling patterns from our documentation
  • Performance Tips: AI identifies optimization opportunities using our best practices

Supported AI Tools

ToolSupport LevelSetup DifficultyBest For
Cursor✅ NativeEasyFull-stack development
Windsurf✅ NativeEasyAI-assisted coding
Claude Desktop✅ SupportedMediumDocumentation and planning
VS Code⚠️ Extension RequiredMediumExisting VS Code workflows

Best Practices

Be Specific

Ask specific questions like “How do I paginate through NFT results?” rather than “Help with NFTs”

Include Context

Mention your tech stack: “Using Next.js and TypeScript, show me how to…”

Iterate Quickly

Use the generated code as a starting point and ask for modifications

Test Generated Code

Always test AI-generated code in your development environment

Troubleshooting

Learn More

Ready to supercharge your development workflow? Install the Helius MCP server and start building with AI assistance today!