Cover image
Try Now
2025-04-14

MCP-Tools的收集以与Monad区块链互动

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Monad MCP Server (@unsorted-ai/mcp)

A Model Context Protocol (MCP) server for interacting with the Monad blockchain via Alchemy's API.
It exposes tools (e.g. get_portfolio) that LLM‑powered agents (Cursor, Claude) can call directly.


Table of Contents

  1. Prerequisites
  2. Installation & Configuration
  3. Local Development
  4. Tools Provided
  5. Scripts
  6. Contributing
  7. License

Prerequisites


Installation & Configuration

Global Configuration (Recommended)

  1. Create or edit ~/.cursor/mcp.json in your home directory:

    {
      "mcpServers": {
        "monad-tools": {
          "command": "npx",
          "args": ["-y", "@unsorted-ai/mcp@latest"],
          "env": {
            "ALCHEMY_API_KEY": "YOUR_ALCHEMY_API_KEY",
          },
        },
      },
    }
    
  2. Restart or reload your Cursor workspace.

  3. In chat, ask something like:

    Get the portfolio for wallet addresses 0xABC... and 0xDEF...

    Cursor will automatically invoke the get_portfolio tool.

Project-Level Configuration

  1. Add this package to your project:

    npm install --save @unsorted-ai/mcp
    # or
    bun add @unsorted-ai/mcp
    
  2. In your project root, create (or open) .cursor/mcp.json:

    {
      "mcpServers": {
        "monad-tools": {
          "command": "node",
          "args": ["./node_modules/@unsorted-ai/mcp/dist/main.js"],
          "env": {
            "ALCHEMY_API_KEY": "YOUR_ALCHEMY_API_KEY",
          },
        },
      },
    }
    
  3. Restart or reload your Cursor workspace.

  4. In chat, ask something like:

    Get the portfolio for wallet addresses 0xABC... and 0xDEF...

    Cursor will automatically invoke the get_portfolio tool.

For more on Cursor's MCP setup, see "Configuring MCP Servers" in the Cursor docs.


Claude for Desktop

  1. Open Settings → Developer → Edit Config in Claude for Desktop.

  2. In claude_desktop_config.json, add:

    {
      "mcpServers": {
        "monad-tools": {
          "command": "npx",
          "args": ["-y", "@unsorted-ai/mcp@latest"],
          "env": {
            "ALCHEMY_API_KEY": "YOUR_ALCHEMY_API_KEY",
          },
        },
      },
    }
    
  3. Restart Claude. Click the 🔨 icon to see and run your tools.

For a step‑by‑step Claude guide, see the MCP quickstart for Claude Desktop users.


Local Development

Prerequisites

  • Bun v1+
  • (Optional) npm for some scripts

Environment Variables

Copy and configure your Alchemy key:

cp .env.example .env

Edit .env:

ALCHEMY_API_KEY=your-alchemy-api-key-here

MCP Configuration (.cursor/mcp.json)

For local testing:

{
  "mcpServers": {
    "monad-tools": {
      "command": "bun",
      "args": ["dist/main.js"],
    },
  },
}

Building & Running

Install dependencies:

bun install

Build the project:

bun run build

Start the development server:

bun start

Development Scripts

Command Description
bun run build Compile src/main.tsdist/main.js
bun start Run the development server
bun test Run tests
bun run lint Lint source via Biome
bun run format Format source via Biome
bun run check Run Biome checks
bun run clean Remove build artifacts

Tools Provided

  • get_portfolio

    • Description: Fetch on‑chain token balances for up to 2 wallet addresses. Modifies alchemy portfolio response to suit LLM use.

    • Input schema:

      {
        "walletAddresses": ["0x123...", "0x456..."]
      }
      

Scripts

Command Description
bun run build Compile src/main.tsdist/main.js
bun start Run the built server
bun test Run tests
bun run lint Lint source via Biome
npm run format Format source via Biome

Contributing

  1. Fork this repo
  2. git checkout -b feature/foo
  3. Make changes & git commit -m "Add foo"
  4. git push origin feature/foo
  5. Open a pull request

License

MIT © Unsorted AI

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • paulwing
  • 使用MCP服务创建的测试存储库

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    2.6 (5)
    Avatar
    user_VzEoq2Yr
    2025-04-23

    Unsorted-ai-mcp is a game-changer in AI applications! It's user-friendly and highly efficient, making complex tasks a breeze. The intuitive design and seamless integration into my workflow have significantly boosted my productivity. Whether you're a seasoned AI expert or just starting out, unsorted-ai-mcp is a must-have tool. Highly recommend!

    Avatar
    user_Wjgff8OG
    2025-04-23

    As an avid user of unsorted-ai-mcp, I am impressed by its efficiency and intuitive design. The product by unsorted-ai stands out with its seamless integration and user-friendly interface. The responsiveness and support provided are commendable. Highly recommend to anyone looking for a reliable mcp application!

    Avatar
    user_ETXn4AJj
    2025-04-23

    I've been using unsorted-ai-mcp, and it's truly impressive! The application's seamless integration and user-friendly interface make managing connections effortless. The AI capabilities are outstanding, providing accurate analyses and timely suggestions. Products from unsorted-ai never disappoint. Highly recommended for anyone looking to optimize their workflow with advanced AI tools!

    Avatar
    user_6Kud1Son
    2025-04-23

    I've been using unsorted-ai-mcp and it's absolutely game-changing! The intuitive interface and powerful features have significantly streamlined my workflow. The support from unsorted-ai is top-notch, making it easy to integrate into my daily tasks. I highly recommend this tool to anyone looking to boost their productivity and efficiency.

    Avatar
    user_mUt7KALu
    2025-04-23

    As a dedicated user of unsorted-ai-mcp, I am thoroughly impressed with its performance and versatility. This tool has incredibly streamlined my workflow, allowing for more efficient project management and data processing. Its user-friendly interface and robust features make it an indispensable asset in my daily tasks. Highly recommend it to anyone seeking to enhance their productivity with advanced AI solutions!