XGR MCP Gateway
OfficialThe XGR MCP Gateway provides AI-native, read-heavy access to the XGR.Network blockchain stack, enabling agents to inspect chain state, analyze XDaLa sessions, work with XRC standards, and prepare user-reviewed handoffs — all without holding private keys or signing transactions.
Read Chain & Account State Retrieve live chain status, latest block, account balances/nonces/contract code, transaction evidence and receipts, core protocol addresses, and circulating supply.
Search Explorer Data Query transactions by address, hash, value, block range, session ID, and more; get account histories, block transactions, value transfers, and chain-wide transaction stats.
Inspect XDaLa Sessions List, detail, and monitor XDaLa sessions — including status, timeline, payloads, receipt logs, execution steps, owner discovery, and keyset-paginated enumeration.
XDaLa Analytics Aggregate session stats (success/failure, duration, errors), timeseries (per hour/day/month), step-level stats, active session timeseries, and payload field/term/value statistics.
Work with XRC Standards Browse and inspect XRC-137/XRC-729 contracts, events, OSTC state, rule JSON, process graphs, usage/failure stats, authority, and identify reusable or unused rules.
Discover Workflows Find startable XDaLa workflows for an address and discover reusable XRC-137 rules or XRC-729 authority.
Draft, Validate & Reference Artifacts Access schemas, examples, and authoring rules for XRC-137, XRC-729, MultiBundles, and session start handoffs; validate rules, blueprints, MultiBundles, and session-start payloads for correctness.
Prepare & Manage Handoffs (No Signing) Create operation handoffs, bundle deploy handoffs, and XDaLa session start handoffs for local user review and signing; check status, retrieve results, or cancel pending handoffs.
Visualize Process Graphs Render XRC-729 process graphs as Mermaid flowcharts from runtime, bundle, or handoff data.
Chain Utilities Get core protocol addresses, circulating supply, and estimate gas for XRC-137 rule execution.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@XGR MCP Gatewaywhat's the current block height?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
XGR MCP Gateway
XGR MCP Gateway provides AI-native access to the XGR.Network stack through the Model Context Protocol. It connects MCP-compatible agents such as Claude, ChatGPT, IDE assistants and custom hosts to XGRChain, XDaLa sessions, Explorer data, XRC standards and owner-reviewed on-chain action preparation.
The gateway is designed for agent-assisted workflow creation: agents can inspect live chain evidence, reason over XDaLa process state, draft XRC artifacts and prepare handoffs that a user reviews and signs locally.
The gateway never requests, receives, stores or controls user or third-party private keys and cannot sign on behalf of users. User write intents are prepared as handoffs and signed locally. An optional starter-gas service may use a dedicated server-controlled funding key solely to send fixed XGR gas grants from the service wallet.
Public MCP endpoints
Mainnet:
https://mcp.xgr.network/mcpTestnet:
https://mcp.testnet.xgr.network/mcpUse mainnet to inspect real XGRChain and XDaLa activity. Use testnet to safely draft, validate and experiment with agent-driven workflows before production use.
Related MCP server: Ethereum RPC MPC Server
MCP client configuration
{
"mcpServers": {
"xgr-mainnet": {
"type": "streamable-http",
"url": "https://mcp.xgr.network/mcp"
},
"xgr-testnet": {
"type": "streamable-http",
"url": "https://mcp.testnet.xgr.network/mcp"
}
}
}For clients that still expect http instead of streamable-http, use the same endpoint URL and select the HTTP/remote MCP transport offered by your client.
What agents can do
Read chain state: inspect live XGRChain status, blocks, account state and transaction evidence.
Discover official XGR resources: use
get_xgr_network_infofor canonical XGR.Network, XGRChain, XDaLa, RPC, Explorer, MCP, documentation and ecosystem metadata.Inspect XDaLa sessions: find, list and explain sessions, process steps, payloads, receipts and execution outcomes.
Search Explorer data: query account history, value transfers, block history, transaction statistics and session analytics.
Work with XRC standards: explore XRC-137 rules, XRC-729 orchestrations, process graphs, reuse patterns and failure analytics.
Draft process artifacts: prepare XRC-137/XRC-729 artifacts and bundles against built-in schemas and validation rules.
Prepare owner-signed actions: create review-and-sign handoffs for deployments and session starts without exposing private keys.
Request starter gas where enabled: fund an eligible low-balance address with one fixed 1 XGR grant before deployment, session start, contract calls or other on-chain actions.
Official network metadata
get_xgr_network_info returns versioned, machine-readable metadata for XGR.Network and its ecosystem. Agents should use it when users request official project information, network configuration, RPC or Explorer endpoints, MCP connection details, documentation, XRC standard context or source repositories.
get_chain_status remains the live JSON-RPC status tool and additionally returns compact official entry points for the connected XGRChain mainnet.
Why XGR.Network MCP
XGR.Network MCP is built around deterministic process infrastructure rather than generic chat automation. It gives agents structured access to the XGR stack while keeping user signing, user custody and final approval outside the gateway.
This makes it suitable for:
AI-assisted Web3 workflow design
XDaLa process preparation and inspection
compliance-oriented process evidence
deterministic validation and execution flows
EVM-compatible process automation
agent interfaces for XGRChain data and XRC standards
Documentation
Full reference lives in the central XGR documentation:
Self-hosting
The gateway can be operated against your own XGRChain RPC and Explorer instance. Self-hosting requires an Explorer deployment with a read-only Postgres mirror for transaction search and session analytics tools.
Typical setup flow:
npm install
npm run typecheck
npm run build
npm run start:httpRequired runtime configuration is documented in Setup & Configuration.
Security model
The gateway never requests, receives, stores or controls user or third-party private keys.
User transactions are prepared as handoffs and signed locally by the user or the user's custody setup.
The optional starter-gas service is a narrow exception: it signs only transfers from a dedicated server-controlled funding wallet and cannot sign on behalf of users.
Starter-gas grants are fixed at 1 XGR, limited by recipient balance, one confirmed grant per address, hourly and daily caps, and a bounded retry policy.
Starter-gas grant state is stored atomically in SQLite with
reserved,broadcast,confirmedandfailedstates.Production user signing remains under the control of the user's wallet or custody setup.
Links
Website: https://xgr.network
MCP endpoint: https://mcp.xgr.network/mcp
Official MCP Registry name:
io.github.xgr-network/xdala-workflow-builderSmithery listing: https://smithery.ai/servers/xgrnetwork/xdala-workflow-builder
License
Licensed under the Apache License 2.0.
Mainnet XGR purchase tools
The optional purchase tools are mainnet-only, disabled by default, and are never registered by testnet. Enable them only with XGR_PURCHASE_TOOLS_ENABLED=true, XGR_PURCHASE_NETWORK=mainnet, a valid HTTPS API URL (or local HTTP), and a maximum at or below 249.99 EUR.
quote_xgr_purchase is optional planning only. create_xgr_purchase_order creates the real order in one call to POST /api/orders; the website confirmation modal is not a separate API phase. The backend is authoritative for the final price, crypto amount, custody wallet, payment reference, and reservation. The MCP holds no user or third-party private keys and does not pay; an external wallet agent can execute the returned exact payment instruction.
The 249.99 EUR maximum is an MCP policy for autonomous orders. Separately, the XGR_Web backend requires a complete billing address from a newly calculated net_eur >= 250; it is not a backend order maximum. A backend repricing/address error is returned without retrying the order.
Purchase tools distinguish fixed-XGR orders from conservative USDC/USDT budget orders. The live backend POST determines the binding market price and exact amount_crypto; EUR is only a policy/reference value. A budget order whose exact returned amount exceeds its cap is not paid and its existing reservation expires normally.
Starter-gas tools
Where enabled, get_xgr_starter_gas_options exposes the current fixed grant and eligibility policy. request_xgr_starter_gas sends one fixed 1 XGR grant from a dedicated service wallet to an eligible low-balance EVM address. Agents should use it before deployments, session starts, contract calls or other on-chain actions when the target address lacks native XGR for gas.
The service does not request an address-ownership proof and does not use proof-of-work. Abuse is bounded through one confirmed grant per address, an hourly cap, a daily cap, recipient-balance eligibility, a low-balance service wallet and a limited number of retries after pre-broadcast failures.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that powers AI agents with indexed blockchain data from The Graph.3MIT
- Alicense-qualityDmaintenanceAn MCP server that bridges AI models with Ethereum blockchains via all JSON-RPC calls, enabling natural language queries for block numbers, balances, transactions, and smart contract data.721MIT
- AlicenseAqualityDmaintenanceAn MCP server enabling AI agents to interact with the 0G blockchain, including balance checks, transaction details, block info, and network statistics.51MIT
- Alicense-qualityDmaintenanceProduction-ready MCP server for 0G Chain blockchain operations, enabling wallet creation, balance checks, token transfers, staking, and validator discovery through natural language.MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
GibsonAI MCP server: manage your databases with natural language
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/xgr-network/xgr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server