Pharos MCP Server
OfficialYou can read a wide range of Pharos blockchain data (EVM-compatible, native token PROS) via MCP tools, including:
Chain metadata (chain ID, client version, latest block, RPC endpoint)
Native PROS balances, address nonces, and gas prices
Block details (by tag or number)
Full transaction details and receipts by hash
Deployed contract bytecode and storage slots
Read-only contract calls (
eth_call) and gas estimationEvent logs within a block range (up to 5,000 blocks per call) The server optionally supports broadcasting signed raw transactions (
send_raw_transaction) when self-hosted and enabled, but the hosted endpoint is read-only.
Click on "Deploy 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., "@Pharos MCP Server What's the latest Pharos block?"
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.
Pharos MCP Server
An MCP server that brings Pharos chain data into MCP-compatible IDEs and agent workflows — Claude Desktop, Cursor, Windsurf, and custom agent runners.
Network: Pharos (EVM-compatible, 100% Ethereum-compatible)
Chain ID:
1672(0x688)RPC:
https://rpc.pharos.xyzNative token: PROS
Hosted endpoint:
https://mcp.pharos.xyz/mcp
Quick start — use the hosted server
No API key required. Add this to your MCP client configuration:
{
"mcpServers": {
"pharos": {
"type": "http",
"url": "https://mcp.pharos.xyz/mcp"
}
}
}The hosted endpoint speaks Streamable HTTP, so your client must support remote MCP
servers. Clients that only support stdio can bridge with
mcp-remote:
{
"mcpServers": {
"pharos": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.pharos.xyz/mcp"]
}
}
}Once connected, ask your agent things like "what's the latest Pharos block?" or "check the PROS balance of 0x…".
Rate limit: 120 requests per minute per IP. Exceeding it returns HTTP 429 with a
Retry-After header.
Related MCP server: etherscan-mcp-server
Tools
13 read-only tools are available today.
Tool | Underlying JSON-RPC | Description | Parameters |
|
| Chain ID, client version, latest block | — |
|
| Latest block height | — |
|
| Native PROS balance of an address |
|
|
| Address nonce |
|
|
| Current gas price and priority fee | — |
|
| Block by tag or number |
|
|
| Transaction by hash |
|
|
| Transaction receipt |
|
|
| Contract bytecode |
|
|
| Read a contract storage slot |
|
|
| Read-only contract call |
|
|
| Estimate gas without sending |
|
|
| Event logs over a block range (max 1000 blocks per call) |
|
block accepts a named tag (latest, earliest, pending, safe, finalized), a
decimal number, or a 0x hex quantity.
Transaction broadcasting
A send_raw_transaction tool exists but is disabled on the hosted endpoint
(ENABLE_SEND_RAW_TRANSACTION=false), which is therefore read-only. Calling it there
returns an error.
The design is non-custodial: the server never receives or stores a private key. It only relays a transaction you already signed locally. If you self-host and enable it, put authentication in front of the endpoint first — an open, unauthenticated broadcast endpoint lets anyone push transactions through your node.
Self-hosting
Requires Node.js 20+.
npm install
npm run buildstdio transport
npm start{
"mcpServers": {
"pharos": {
"command": "node",
"args": ["/absolute/path/to/pharos-mcp/dist/src/index.js"],
"env": {
"PHAROS_RPC_URL": "https://rpc.pharos.xyz",
"PHAROS_CHAIN_ID": "1672",
"PHAROS_NATIVE_SYMBOL": "PROS"
}
}
}
}HTTP transport
MCP_TRANSPORT=http \
MCP_HOST=127.0.0.1 \
MCP_PORT=3001 \
MCP_AUTH_TOKEN="$(openssl rand -hex 32)" \
npm startMCP endpoint:
http://127.0.0.1:3001/mcp(POST only)Health check:
http://127.0.0.1:3001/health
With MCP_AUTH_TOKEN set, clients must send Authorization: Bearer <token>.
Scaling note. In HTTP mode each MCP session is held in the server process's memory. Running multiple instances behind a load balancer therefore needs real session affinity — and cookie-based stickiness is not enough, because MCP clients generally do not store or resend cookies. Requests that land on an instance which does not own the session fail with
Unknown MCP session. Run a single instance, or move session state into a shared store before scaling out.
Docker
docker build -t pharos-mcp-server .
docker run -p 3001:3001 -e MCP_TRANSPORT=http -e MCP_HOST=0.0.0.0 pharos-mcp-serverConfiguration
Variable | Default | Description |
|
| Upstream JSON-RPC endpoint |
|
| Expected chain ID |
|
| Native token symbol |
|
|
|
|
| Bind address (use |
|
| HTTP port |
| — | Bearer token; auth is off when unset |
|
| Enable transaction broadcasting |
|
| Per-IP request cap; |
|
| Set |
|
| Maximum concurrent MCP sessions; new sessions past the cap get |
|
| Idle sessions are evicted after this long |
Development
npm test # unit tests + a live chain ID check
npm run smoke # end-to-end MCP test over stdio against the real RPC
npm run smoke:http # end-to-end test against a running HTTP servernpm run smoke exercises the write path by signing a zero-value transaction with a freshly
generated empty wallet. The RPC rejects it for insufficient funds, so nothing is broadcast
on-chain.
Security notes
Never pass a private key or mnemonic to this server; it has no use for one.
send_raw_transactionis disabled by default.HTTP binds to
127.0.0.1by default.For a public deployment, terminate TLS in front of the server and keep rate limiting on.
admin_*,debug_*,personal_*andtxpool_*methods are not exposed.
License
MIT
Available Tools
14 toolsestimate_gasARead-only
Estimate gas for a transaction without sending it
Inputs: transaction (required).
eth_callCRead-onlyIdempotent
Execute a read-only EVM contract call
Inputs: transaction (required), block.
get_balanceARead-onlyIdempotent
Get the native PROS balance of an EVM address
Inputs: address (required), block.
get_blockARead-onlyIdempotent
Get a Pharos block by tag or number
Inputs: block, includeTransactions.
get_block_numberARead-only
Get the latest Pharos block number
Inputs: no named parameters.
get_chain_infoARead-onlyIdempotent
Get Pharos chain ID, client version, latest block and configured RPC endpoint
Inputs: no named parameters.
get_codeBRead-onlyIdempotent
Get contract bytecode at an address
Inputs: address (required), block.
get_gas_priceARead-only
Get current Pharos gas price and priority fee
Inputs: no named parameters.
get_logsARead-onlyIdempotent
Get EVM logs with bounded block range supplied by the caller
Inputs: topics, address, toBlock, fromBlock.
get_storage_atCRead-onlyIdempotent
Read a contract storage slot
Inputs: address (required), position (required), block.
get_transactionBRead-onlyIdempotent
Get a transaction by hash
Inputs: hash (required).
get_transaction_countBRead-only
Get an address transaction count (nonce)
Inputs: address (required), block.
get_transaction_receiptARead-onlyIdempotent
Get a transaction receipt by hash
Inputs: hash (required).
send_raw_transactionADestructive
Broadcast an already-signed raw EVM transaction. This server never receives a private key.
Inputs: rawTransaction (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Every tool targets a distinct resource or action: code, storage, call, gas, logs, transaction, receipt, balance, nonce, gas price, block, chain info. No two tools have overlapping purposes; even similar ones like get_transaction and get_transaction_receipt are clearly separated by what they return.
All tools follow a snake_case pattern, predominantly verb_get_* for reads and send_raw_transaction for the write operation. eth_call and estimate_gas are also snake_case and align with common EVM naming, preserving overall consistency.
14 tools is well within the ideal 3-15 range for an EVM blockchain server. Each tool corresponds to a standard JSON-RPC method, and none are redundant or superfluous given the server's purpose.
The tool set covers the full spectrum of EVM node interactions: chain info, blocks, transactions, receipts, balances, storage, code, calls, gas estimation, logs, nonce, gas price, and raw transaction broadcast. This is a complete surface for typical dApp or chain interaction needs.
Maintenance
Related MCP Connectors
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Read-only Parallax PoW chain data: blocks, transactions, mining, supply, explorer and network health
Free read-only crypto whale-tracking & market-data MCP tools across 14 chains. No auth.
Read-only DERO blockchain MCP: 33 tools (12 composites) incl. TELA discovery + bundled docs.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceBridges Ethereum JSON-RPC queries from Geth nodes to the Model Context Protocol ecosystem, exposing blockchain operations as MCP tools. Enables AI models and applications to securely interact with Ethereum data including blocks, transactions, balances, and advanced debug functions through schema-validated access.52 npm4MIT
- AlicenseAqualityFmaintenanceProvides MCP tools to query Etherscan for Ethereum blockchain data—ETH balances, ERC-20 tokens, transactions, contract ABIs, and gas prices—without requiring an API key.84 npmMIT
- AlicenseAqualityDmaintenanceA read-only MCP server that queries multichain EVM on-chain data through Blockscout REST API, providing tools for address info, transactions, logs, and more.1613 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides multichain block-explorer data from Etherscan via MCP tools for token balances, contract ABI, and source code.90 npmMIT