npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@vechain/mcp-server

v1.0.0-alpha.3

Published

A Model Context Protocol (MCP) server that provides AI assistants with access to VeChain ecosystem documentation and blockchain data. This server enables seamless integration of VeChain capabilities into AI workflows through the MCP standard.

Readme

VeChain MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to VeChain ecosystem documentation and blockchain data. This server enables seamless integration of VeChain capabilities into AI workflows through the MCP standard.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely access external data and tools. This server implements MCP to provide VeChain-specific capabilities to any MCP-compatible client.

Features

  • Unified Documentation Search: Search across multiple VeChain ecosystem documentation resources
  • Blockchain Data Access: Query VeChain Thor blockchain data (blocks, transactions, accounts)
  • Event Decoding: Decode raw blockchain events into human-readable format
  • Multi-Network Support: Connect to mainnet, testnet, or solo networks

Supported Documentation Sources

  1. VeChain Documentation - Core VeChain blockchain documentation
  2. VeChain Kit - VeChain development toolkit documentation
  3. VeBetterDao - Decentralized governance platform documentation
  4. VeVote - Voting platform documentation
  5. Stargate - VeChain infrastructure documentation

Prerequisites

  • Node.js 18.x or higher (required for running the server)
  • An MCP-compatible client such as:

Available Tools

Documentation Search Tools

  • searchDocsVechain - Search VeChain documentation
  • searchDocsVechainKit - Search VeChain Kit documentation
  • searchDocsVebetterDao - Search VeBetterDao documentation
  • searchDocsVevote - Search VeVote documentation
  • searchDocsStargate - Search Stargate documentation

Thor Blockchain Tools

  • thorGetBlock - Get block information
  • thorGetTransaction - Get transaction details
  • thorGetAccount - Get account information
  • thorDecodeEvent - Decode raw blockchain events

Token & NFT Tools

  • getTokenBalances - Get token balances for an account
  • getTokenFiatPrice - Get fiat price for tokens
  • getTokenRegistry - Get token registry information
  • getNFTs - Get NFTs owned by an account
  • getNFTContracts - Get NFT contract information

B3TR & VeBetterDAO Tools

  • getB3TRGlobalOverview - Get B3TR global statistics
  • getB3TRAppsLeaderboard - Get leaderboard of B3TR apps
  • getB3TRProposalsResults - Get B3TR proposal voting results
  • getB3TRProposalComments - Get on-chain voting comments
  • getCurrentRound - Get current VeBetterDAO round info
  • getGMNFTStatus - Check GM NFT status for an account

Stargate Staking Tools

  • getStargateTotalVetStaked - Get total VET staked
  • getStargateTokenRewards - Get staking rewards
  • getValidators - Get validator information

Transaction & Transfer Tools

  • getTransactions - Get transactions for an account
  • getTransfersOfAccount - Get token transfers
  • getHistoryOfAccount - Get account history

...and many more! Use the MCP inspector or ask your AI assistant to list all available tools.

Quick Start

1. Install in Your MCP Client

The easiest way to use the VeChain MCP server is to install it directly from npm using npx. This method automatically downloads and runs the latest version without requiring local setup.

For Claude Desktop

  1. Locate your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    • Linux: ~/.config/Claude/claude_desktop_config.json

  2. Add the VeChain server configuration:

{
  "mcpServers": {
    "vechain": {
      "command": "npx",
      "args": ["-y", "@vechain/mcp-server@latest"],
      "env": {
        "VECHAIN_NETWORK": "mainnet"
      }
    }
  }
}
  1. Restart Claude Desktop

For Cursor

  1. Open Cursor Settings:

    • Press Cmd/Ctrl + Shift + P

    • Type "Open MCP Settings" and select it

  2. Add the VeChain server configuration (same JSON as above)

  3. Restart Cursor

For Claude Code

  1. Locate your Claude Code configuration file:

    • Create or edit ~/.claude/mcp.json
  2. Add the VeChain server configuration (same JSON as above)

  3. Restart Claude Code

2. Verify Installation

Once your MCP client restarts, you should see the VeChain MCP tools available. You can test by asking your AI assistant:

  • "Search VeChain documentation for VTHO"
  • "Get the latest block on VeChain"
  • "What is my VeChain account balance for address 0x..."

Configuration

Network Selection

Set the VECHAIN_NETWORK environment variable to connect to different VeChain networks:

  • mainnet - VeChain MainNet (default, production network)
  • testnet - VeChain TestNet (for testing and development)
  • solo - Local solo network (for local development)

Example configuration for testnet:

{
  "mcpServers": {
    "vechain": {
      "command": "npx",
      "args": ["-y", "@vechain/mcp-server"],
      "env": {
        "VECHAIN_NETWORK": "testnet"
      }
    }
  }
}

Run with Docker

Prerequisite: Docker 20+.

  1. Pull the multi‑arch image (amd64/arm64):
docker pull ghcr.io/vechain/vechain-mcp-server:latest
  1. Run the HTTP server:
docker run -d --rm \
  -p 4000:4000 \
  -e VECHAIN_NETWORK=mainnet \ # mainnet | testnet | solo
  --name vechain-mcp \
  ghcr.io/vechain/vechain-mcp-server:latest
  1. Verify:
curl -fsS http://localhost:4000/health
  1. List MCP tools (optional check):
curl -sS -m 10 -X POST http://localhost:4000/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":"1","method":"tools/list"}'

Notes:

  • MCP endpoint: POST /mcp (Content-Type: application/json, Accept: application/json, text/event-stream).

Local Development Setup

If you want to contribute to the VeChain MCP server or test local changes, follow these instructions.

Prerequisites for Development

  • Node.js 18.x or higher
  • npm or yarn package manager
  • Git

Setup Steps

  1. Clone the repository:
git clone https://github.com/vechain/vechain-mcp-server.git
cd vechain-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Development Modes

Option 1: STDIO Mode (Production-like)

Use this mode to test the server as it would run in production (via stdin/stdout).

  1. Build the project (if not already done):
npm run build
  1. Configure your MCP client to use the local build:
{
  "mcpServers": {
    "vechain-local": {
      "command": "node",
      "args": ["/absolute/path/to/vechain-mcp-server/dist/stdio.js"],
      "env": {
        "VECHAIN_NETWORK": "testnet"
      }
    }
  }
}

Replace /absolute/path/to/vechain-mcp-server with the actual path to your cloned repository.

  1. Restart your MCP client

Note: For Claude Code and Cursor, the local configuration is already set up in .claude/mcp.json and .cursor/mcp.json respectively.

Option 2: HTTP Mode with Hot Reload (Active Development)

Use this mode when actively developing - it automatically reloads on file changes.

  1. Start the development server:
npm run dev

This starts an HTTP server on http://localhost:4000/mcp with file watching enabled.

  1. Configure your MCP client to connect via HTTP:
{
  "mcpServers": {
    "vechain-local-dev": {
      "url": "http://localhost:4000/mcp"
    }
  }
}
  1. Restart your MCP client

Now any changes you make to the source code will automatically reload the server.

Note: This HTTP mode currently works with Cursor and other clients that support HTTP transport. Claude Desktop may have limited support for HTTP-based MCP servers.

Testing Your Changes

Using MCP Inspector

The MCP Inspector provides a web UI to test your MCP tools interactively:

npm run inspect

This opens a browser interface where you can test individual tools and see their responses.

Discourse Forum Integration (Optional)

Forum tools are OPTIONAL and work without the Discourse MCP server by providing forum URLs for manual viewing. To enable automated forum data fetching:

# Install globally
npm install -g @discourse/mcp@latest

# Run in HTTP transport mode with site pre-configured (recommended)
npx -y @discourse/mcp@latest --transport http --site https://vechain.discourse.group

# Or if installed globally
discourse-mcp --transport http --site https://vechain.discourse.group

Important: The --transport http flag is required to run Discourse MCP as an HTTP server that the VeBetterDAO MCP can connect to as an upstream server. Without this flag, it will run in STDIO mode (designed for direct AI client integration like Claude Desktop).

The Discourse server runs on http://localhost:3000 by default. The VeChain MCP will automatically connect to it if running.

Without Discourse MCP:

  • Forum tools will provide direct URLs to view discussions manually
  • Example: https://vechain.discourse.group/t/proposal-name/559

With Discourse MCP (HTTP mode):

  • Forum tools will fetch full discussion content automatically
  • Analyze sentiment and extract key points programmatically

Quick Start Commands:

# Terminal 1: Start Discourse MCP (with site pre-configured)
npx -y @discourse/mcp@latest --transport http --site https://vechain.discourse.group

# Terminal 2: Start VeBetterDAO MCP
npm run dev

Running Automated Tests

  1. Build and start the server:
npm run build
npm run start
  1. In a separate terminal, run the test suite:
npm run test

Code Quality

Format and lint your code before committing:

npm run format  # Format code with Biome
npm run lint    # Lint and fix issues with Biome

Contributing

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