This repository publishes different technical specifications pertaining to the implementation and interaction with Starknet.
The JSON-RPC API can be found under the api/ folder.
You can view it more conveniently using the OpenRPC playground here.
A guide to the API can be found here.
An MCP server is available under mcp/ that exposes all Starknet JSON-RPC methods as Claude Code tools. This lets Claude query blocks, transactions, state, and traces directly from a live Starknet node.
If you use Claude Code, run /install-starknet-mcp <your-rpc-url> from this repo to set it up. See mcp/README.md for details.
When developing the schema, you can validate the OpenRPC schema file, by running the provided script. Note this requires node.js installed.
The command:
./validate.js api/starknet_api_openrpc.json
will run a validation on the api/starknet_api_openrpc.json schema file.
If everything is ok, an appropriate message is displayed; otherwise errors are output to standard error.