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。它更倾向于发送字符串。部分代码中已阻止此类操作,但如果您遇到任何错误,请提交问题。

You must be authenticated.

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

        • A
          security
          F
          license
          A
          quality
          An MCP server that connects Claude to BrianKnows' blockchain knowledge base, allowing users to search for blockchain/DeFi information and interact with a specialized agent across multiple knowledge bases.
          Last updated -
          3
          JavaScript
        • -
          security
          A
          license
          -
          quality
          An MCP server that provides seamless integration with the Neo N3 blockchain, allowing Claude to interact with blockchain data, manage wallets, transfer assets, and invoke smart contracts.
          Last updated -
          22
          3
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP server that connects Claude for Desktop with blockchain functionality, allowing users to check balances and send tokens on EVM and Solana chains through natural language interactions.
          Last updated -
          TypeScript
          • Apple
        • A
          security
          A
          license
          A
          quality
          A tool that enables users to interact with blockchain data to retrieve token total supply, chain IDs, and filtered RPC endpoints across different blockchain networks.
          Last updated -
          6
          9
          JavaScript
          MIT License

        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