Starknet MCP Server

Starknet MCP Server

An MCP server enabling AI agents to interact with Starknet data, wallets, and contracts.

5
Stars
4
Forks
3
Releases

Overview

The Starknet MCP Server is a comprehensive Model Context Protocol (MCP) server designed to empower AI agents with seamless access to the Starknet ecosystem. Built with Starknet.js, it exposes a unified MCP interface for reading blockchain state, querying chain data, resolving Starknet IDs, and performing write operations across both the mainnet and Sepolia testnet. It enables interactions with Cairo smart contracts, token transfers (ETH, STRK, and ERC20), token and NFT data, and metadata retrieval, including contract ABIs and storage information. StarknetID integration provides address-to-ID resolution, ID-to-address resolution, full Starknet ID profiles, and domain validation. The server supports two transport modes: a stdio server for CLI toolchains and an HTTP server with REST endpoints and Server-Sent Events for real-time updates. Designed for AI assistants such as Claude and GPT, it also aims to simplify integration with Cursor through standard MCP tools, resources, and prompts, enabling developers to build AI-powered workflows that securely read and write Starknet data.

Details

Owner
mcpdotdirect
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Starknet Integration

Full Starknet blockchain integration using Starknet.js to access chain data, query state, and interact with Cairo smart contracts.

Network Support

Supports Starknet Mainnet and Sepolia testnet for both development and production usage.

StarknetID Integration

Resolve Starknet IDs to addresses and vice versa, with access to Starknet ID profiles and domain validation.

Native Token Support

Balances and transfers for native tokens (ETH and STRK), with combined native balance visibility.

Smart Contract Interaction

Call read-only contract functions and execute writes with transaction confirmations; access storage and ABIs.

Token and NFT Operations

Get ERC20 token information and balances, transfer tokens; check NFT ownership and view NFT balances and collections.

Blockchain Information

Query chain information (chain ID, latest block), explore blocks and transactions, view receipts and statuses, and access address/contract data.

Dual Transport

Run as a stdio server or an HTTP server (REST + SSE) to fit CLI/tooling and web integration needs.

Audience

AI developersProvide Starknet data and operations to AI agents via MCP tools.
AI assistantsSeamlessly query Starknet state and perform actions through Cursor or Claude.
Blockchain developersBuild apps that need read/write Starknet interactions and StarknetID resolution.

Tags

StarknetMCPAIblockchainStarknetIDETHSTRKERC20NFTsmart contractsStarknet.jsMainnetSepoliaCursorClaude