vtru-mcp

Vitruveo/vtru-mcp

3.2

If you are the rightful owner of vtru-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Vitruveo MCP Server (`vtru-mcp`) is a Model Context Protocol server providing read-only blockchain services for the Vitruveo network.

Tools
11
Resources
0
Prompts
0

Vitruveo MCP Server (vtru-mcp)

License: MIT Vitruveo TypeScript Viem

A Model Context Protocol (MCP) server that provides read-only blockchain services for the Vitruveo network.

Vitruveo enhancement:
Added get_core_contracts, which returns a list of core Vitruveo contract addresses (treasury, system contracts, etc.).
More Vitruveo-specific tools will be added over time.

Forked from: mcpdotdirect/evm-mcp-server


📋 Contents

  • Overview
  • Features
  • Vitruveo Tools
  • Supported Network
  • Prerequisites
  • Installation
  • Server Configuration
  • Usage
  • Connecting from MCP Clients
  • API Reference
  • Project Structure
  • Development
  • License

🔭 Overview

vtru-mcp exposes Vitruveo chain data to AI agents via the Model Context Protocol.

It is designed to be:

  • Vitruveo-focused – chain ID 1490 only.
  • Read-only – no private keys or signing.
  • MCP-native – exposes tools + resources.
  • Dual-transport – STDIO and HTTP/SSE.

✨ Features

Blockchain Data

  • Latest block retrieval
  • Get block by number
  • Transaction lookup
  • Transaction receipts
  • Native VTRU balance
  • Contract view/pure calls
  • Token/NFT metadata (read-only)

Vitruveo-Specific

  • get_core_contracts — returns Vitruveo system contract addresses.

Safe for Public Use

  • No private keys
  • No transfers or approvals
  • No write methods

🌐 Supported Network


🛠️ Prerequisites

  • Bun 1.0+
  • Node 18+

📦 Installation

npm install -g @vitruveo/vtru-mcp

Or:

npx @vitruveo/vtru-mcp

From source:

git clone https://github.com/vitruveo/vtru-mcp.git
cd vtru-mcp
bun install

⚙️ Server Configuration

Defaults:


🚀 Usage

STDIO (default)

npx @vitruveo/vtru-mcp

HTTP + SSE

npx @vitruveo/vtru-mcp --http

Endpoints:

  • SSE: /sse
  • Messages: /messages

🤖 Connecting from MCP Clients

Cursor (command mode)

.cursor/mcp.json:

{
  "mcpServers": {
    "vtru-mcp": {
      "command": "npx",
      "args": ["@vitruveo/vtru-mcp"]
    }
  }
}

Cursor (HTTP mode)

{
  "mcpServers": {
    "vtru-mcp-http": {
      "url": "http://localhost:3001/sse"
    }
  }
}

ChatGPT Desktop

  • Type: Command
  • Command: npx
  • Args: @vitruveo/vtru-mcp

Claude CLI

claude mcp add vtru-mcp npx @vitruveo/vtru-mcp
claude

📚 API Reference

Tools

Tool NameDescription
get_core_contractsReturns Vitruveo system contract addresses
get_chain_infoChain metadata (chainId, block, rpc)
get_blockFetch block by number or latest
get_transactionTransaction details
get_balanceNative VTRU balance
is_contractDetect if address is a contract
read_contractView/pure call to a contract

Token/NFT (read-only):

ToolDescription
get-token-infoERC20-style metadata
get-token-balanceERC20-style balance
get-nft-infoNFT metadata
get-nft-balanceNFT balance

📁 Project Structure

vtru-mcp/
├── app/
│   └── mcp/
│       └── route.js
├── src/
│   └── mcp/
│       ├── chains.ts
│       ├── tools.ts
│       ├── resources.ts
│       └── services/
│           ├── balance.ts
│           ├── blocks.ts
│           ├── clients.ts
│           ├── contracts.ts
│           ├── ens.ts
│           ├── index.ts
│           ├── tokens.ts
│           ├── transactions.ts
│           ├── transfer.ts
│           └── utils.ts
├── bin/cli.js
├── build/
└── package.json

🛠️ Development

bun dev
bun dev:http
bun run build
bun run build:http

Publishing:

npm run release

📄 License

MIT License — see LICENSE.