# mcp-simulate [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/CryptoAPIs-io/cryptoapis-mcp-simulate  
**GitHub Stars:** 0  
**npm Downloads (last month):** 588  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-simulate

## Description
MCP server for dry-run EVM transaction simulation via Crypto APIs

## Tools
Capabilities this server exposes over MCP:

- **simulate_evm** — Simulate an Ethereum transaction (dry run). Ethereum only — the underlying endpoint has no blockchain parameter.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-simulate": {
    "command": "npx",
    "args": ["-y","@cryptoapis-io/mcp-simulate"],
    "env": {
      "CRYPTOAPIS_API_KEY": "",
      "MCP_AUTH_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `CRYPTOAPIS_API_KEY`, `MCP_AUTH_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-simulate does

mcp-simulate exposes Crypto APIs' Ethereum transaction simulation endpoint through the Model Context Protocol. Agents can submit a transaction as a dry run and inspect the predicted outcome without sending it to the network. The service is intended for pre-broadcast checks, such as reviewing gas consumption, contract-call behavior, and resulting state changes.

The server is Ethereum-only. Its supported networks are mainnet and Sepolia; the underlying Crypto APIs endpoint does not accept a blockchain selector for other chains.

## How it works

The server provides one MCP tool, `simulate_evm`. A caller supplies the target network, sender and recipient addresses, native-coin value, optional contract call data, gas limit, and gas price. mcp-simulate forwards the request to Crypto APIs and returns the simulation result to the MCP client.

By default, the process uses stdio transport, which is suitable for local MCP clients. It can also run an HTTP MCP endpoint. HTTP listens on `127.0.0.1` by default, uses port `3000`, and serves the MCP endpoint at `/mcp`. The host, port, path, and stateless HTTP behavior can be changed with command-line options.

## Setup and configuration

Node.js 18 or newer and a Crypto APIs account with an API key are required. Install the package with:

```bash
npm install @cryptoapis-io/mcp-simulate
```

Run it with a startup key using either the `--api-key` option or `CRYPTOAPIS_API_KEY`:

```bash
npx @cryptoapis-io/mcp-simulate --api-key YOUR_API_KEY
```

Claude Desktop and Cursor can launch the package with `npx` and provide `CRYPTOAPIS_API_KEY` in their MCP configuration. HTTP mode is enabled with `--transport http`; `--port` changes the listening port. When binding beyond localhost, use `--allowed-hosts` to restrict accepted Host headers and protect the endpoint. A remote HTTP deployment using a fixed API key should also require a bearer token through `MCP_AUTH_TOKEN` or `--auth-token`.

HTTP deployments support two API-key patterns. Supplying `--api-key` makes the server use that key for every request. Omitting it makes each caller send its own `x-api-key` header, which supports per-request credentials. Stdio mode requires an API key when the process starts.

## Tools and capabilities

### `simulate_evm`

Simulates an Ethereum transaction on `mainnet` or `sepolia`. Parameters include:

- `network`
- `fromAddress`
- `toAddress`
- `value`, specified in the native coin
- `data`, containing hexadecimal contract-call data
- `gasLimit`
- `gasPrice`

The returned preview can include transaction results, gas usage, and state changes.

## Limitations and notes

A valid Crypto APIs key should be configured before making requests. Invalid or missing credentials may result in an IP ban from the Crypto APIs ecosystem. The tool cannot simulate non-Ethereum blockchains, and the endpoint does not expose a blockchain parameter.

The package is available under the MIT license. Crypto APIs also operates a hosted MCP endpoint at `https://ai.cryptoapis.io/mcp`, which provides its available tools over HTTP Streamable transport and accepts the API key through the `x-api-key` header.

_Full upstream README: https://allmcps.com/mcp/mcp-simulate/readme_

