Cover image
Try Now
2025-04-14

安全分析师,审核员和事件响应的ETH MCP服务器。

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

ETH Security MCP

A collection of MCP servers for security analysts, auditors, and incident response.

Setup

Dependencies

eth-security-mcp requires the following dependencies to be installed:

Environment Variables Setup

MCP servers within eth-security-mcp may make use of environment variables in order to pass information such as API keys. The .env.example lists the relevant values that will be necessary in order to run all MCP severs. To setup your .env file, run cp .env.example .env and fill in the relevant information.

Workspaces

This repository uses npm workspaces to separate each action. To interact with a specific workspace use npm <action> -w src/<directory-name>.

Build And Debug

This repo uses a justfile to automate building and debugging using the MCP Inspector. For example, to build and debug the dune MCP server, you can run the following:

$ just -l
Available recipes:
    build workspace
    debug workspace

$ just debug dune

Installing MCP Servers Into Claude Desktop

To install MCP servers from this repo into Claude Desktop:

  1. Run just setup-<machine> <mcp-server> where machine is either linux or macos, and mcp-server is the name of the directory that contains the MCP server you want to install.

  2. The just command will produce a file in the directory of the MCP server called claude.config.tmp.json, which can be copy-pasted into the following file under mcpServers:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • linux: ~/.config/Claude/claude_desktop_config.json
  3. Once the config info has been added, restart Claude Desktop for the changes to take effect.

MCP Servers

Dune

The Dune MCP server provides access to Dune API endpoints, returning structured results about transactions.

Available Tools

get_transactions_by_address

Overview: Use Dune's Echo API to retrieve transactions for a provided address.

Parameters

  • address (required): The address to get transactions for.
  • chain_ids (optional): Comma separated list of chain ids to get transactions for.
  • method_id (optional): Filter transactions to return ones with the proivded method id (function selector).
  • log_address (optional): Filter transactions to return ones where this address is present in the logs of the transaction.
  • topic0 (optional): Filter transactions to return ones with the provided primary event topic.
  • min_block_number (optional): Filter transactions to return ones that are included in this block number and onwards.
  • limit (optional): Limit the number of transactions returned
  • is_sender (optional): Return transactions where the provided address is the sender.
  • is_receiver (optional): Return transactions where the provided address is the receiver.

Returns

Returns an array of transaction objects, where each transaction contains a list of pertinent information including:

  • address: The address of the contract or account involved
  • block_number: Number of the block containing the transaction
  • data: Raw transaction data
  • from: Address of the transaction sender
  • gas_used: Amount of gas used
  • to: Address of the transaction recipient (null for contract creation)
  • value: Amount of ETH transferred in wei
  • logs: Array of event logs emitted during transaction execution
    • address: Address of the contract emitting the event
    • data: Raw event data
    • topics: Array of event topics
  • decoded: Decoded transaction data (if available)

Sources

The Sources MCP server provides access to both function signature data and contract source code.

Available Tools

retrieve_function_signature

Overview: Retrieve function signature(s) for a given function selector from the 4byte API.

Parameters

  • selector (required): The hexadecimal function selector to retrieve the function signature(s) for.

Returns

Returns an object containing:

  • best_match: The most likely matching function signature (determined by lowest ID).
  • all_matches: Array of all potential matching function signatures found.

retrieve_source_code

Overview: Retrieve source code for a given contract address from Sourcify.

Parameters

  • address (required): The address of the contract to retrieve the source code for.
  • chain_id (required): The chain ID where the contract is deployed.

Returns

Returns an object containing:

  • sources: A record of source files where each key is the file path and the value contains the file content.

Cast

The Cast MCP server provides access to Foundry's cast command-line tool, allowing for interaction with Ethereum nodes and smart contracts.

Available Tools

run_transaction

Overview: Simulate a transaction using Foundry's cast run command.

Parameters

  • transactionHash (required): The hash of the transaction to simulate.
  • rpcUrl (required): The RPC URL of the Ethereum node to use for simulation.
  • quick (optional): Whether to use quick mode for faster simulation (default: false).

Returns

Returns the simulation result as a string, including:

  • Transaction execution details
  • State changes
  • Gas usage
  • Revert reasons (if any)

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • modelcontextprotocol
  • 模型上下文协议服务器

    Reviews

    4 (1)
    Avatar
    user_Dmxuk1Nu
    2025-04-17

    As a dedicated user of eth-security-mcp, I am highly impressed with its robust and reliable functionality. Developed by sirocco-k1, this tool ensures top-notch security for Ethereum-based applications. Highly recommend it to anyone looking to secure their blockchain projects. Check it out on GitHub!