AI-Native Development: The Helius MCP server gives AI tools direct access to our documentation and API specifications, enabling contextual code generation and intelligent assistance.

What is MCP?

Model Context Protocol (MCP) is an open standard that creates standardized connections between AI applications and external services like documentation. The Helius MCP server automatically exposes tools for AI applications to search our documentation and interact with our APIs.

Real-time Context

AI tools can search 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 is automatically generated and hosted at https://docs.helius.dev/mcp, providing AI tools with access to:
  • Complete API Documentation: All Helius API methods, parameters, and examples
  • Search Capabilities: Query any part of our documentation for specific information
  • 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

Choose Your AI Tool

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

Connect to Helius MCP Server

Add the Helius MCP server URL to your AI tool:
https://docs.helius.dev/mcp
Each tool has different configuration methods - see the specific instructions below for your AI tool.
3

Start Using AI with Helius Context

Once connected, start asking questions about Helius APIs. The AI will automatically search our MCP server for accurate, contextual documentation to help generate code.

Connection Instructions

Choose your AI tool and follow the specific setup instructions:
  1. Open Cursor IDE
  2. Use the contextual menu (see below) or manually add the MCP server:
    • Open Settings → MCP Servers
    • Add server URL: https://docs.helius.dev/mcp
  3. Open Agent mode (Ctrl/Cmd + K)
  4. Ask: “Write a Node.js script for sending transactions using Helius”
  5. The AI will search our documentation via MCP to generate accurate code

Contextual Menu Integration

For quick access, use the contextual menu available on any page of our documentation:
  • Copy MCP server URL: Copies https://docs.helius.dev/mcp to your clipboard
  • Connect to Cursor: Automatically installs the MCP server in Cursor
  • Connect to VS Code: Automatically installs the MCP server in VS Code
The contextual menu provides the easiest way to connect to our MCP server. Look for the menu icon in the top-right corner of any documentation page.

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? Connect to the Helius MCP server and start building with AI assistance today!