Skip to main content
Glama

Starknet MCP Server

by milancermak

starknet-mcp

Starknet 的MCP服务器。通过 MCP 提供以下 Starknet RPC 方法:

starknet_getBlockWithTxHashes starknet_getBlockWithTxs starknet_getBlockWithReceipts starknet_getStateUpdate starknet_getStorageAt starknet_getTransactionStatus starknet_getTransactionByHash starknet_getTransactionByBlockIdAndIndex starknet_getTransactionReceipt starknet_getClass starknet_getClassHashAt starknet_getClassAt starknet_getBlockTransactionCount starknet_call starknet_getEvents starknet_getNonce starknet_blockNumber starknet_blockHashAndNumber starknet_chainId starknet_syncing starknet_specVersion

尚不支持写入方法。

安装

安装Bun 。克隆此仓库。使用bun install安装依赖项。更新 Claude 的 MCP 配置 - 请参阅特定操作系统的说明。您需要在claude_desktop_config.json文件中进行如下配置:

{ "mcpServers": { "starknet": { "command": "bun", "args": ["/PATH/TO/THIS/REPO/starknet-mcp/index.ts"], "env": { "STARKNET_RPC_URL": "https://starknet-mainnet.public.blastapi.io/rpc/v0_7" } } } }

用法

正确配置 Claude Desktop 后,它将可以访问所有可用的方法。您可以开始向 Claude 询问有关链状态的问题,例如“Starknet 上最新的区块哈希值和区块编号是多少?”。如果 Claude 确定必须使用 MCP 方法来回答您的问题,它会向您请求权限:

您将在聊天中看到所使用的方法及其输入和输出。

怪癖

starknet_estimateFeestarknet_estimateMessageFee方法尚不受支持。

Claude 并非 100% 遵循工具的 inputSchema。它更倾向于发送字符串。部分代码中已阻止此类操作,但如果您遇到任何错误,请提交问题。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

通过公开各种 RPC 方法促进通过 MCP 与 Starknet 区块链的交互,允许用户使用自然语言查询来查询链状态、交易详情和区块信息。

  1. 安装
    1. 用法
      1. 怪癖

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          This MCP server provides connection to Starrocks allows you to explore this query engine with minimum effort.
          Last updated -
          1
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          Interact with the NEAR blockchain through MCP calls
          Last updated -
          20
          37
          20
          TypeScript
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          An MCP server that enables LLMs to perform blockchain operations on the Base network through natural language commands, including wallet management, balance checking, and transaction execution.
          Last updated -
          4
          552
          2
          TypeScript
          MIT License
          • Apple
        • A
          security
          F
          license
          A
          quality
          An MCP server that fetches on-chain blockchain data via the Ankr API, allowing LLMs to retrieve token balances for wallet addresses on specific networks.
          Last updated -
          1
          559
          1
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/milancermak/starknet-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server