Safe MCP Server logo

Safe MCP Server

by MCP-Mirror

An MCP server implementation for interacting with Safe (formerly Gnosis Safe) smart contract wallets. It allows querying Safe transactions and decoding transaction data.

View on GitHub

Last updated: N/A

What is Safe MCP Server?

The Safe MCP Server is an implementation of the Model Context Protocol (MCP) designed to facilitate interaction with Safe (formerly Gnosis Safe) smart contract wallets. It provides tools for querying transactions, decoding data, and retrieving multisig transaction details.

How to use Safe MCP Server?

  1. Install the server using npm install. 2. Build the server using npm run build. 3. Start the server using npm start. Optionally, configure the SAFE_API_URL environment variable to use a different Safe Transaction API endpoint.

Key features of Safe MCP Server

  • Query Safe transactions for any Safe address

  • Get multisig transaction details

  • Decode transaction data

  • Safe API integration

Use cases of Safe MCP Server

  • Retrieving transaction history for a Safe address

  • Inspecting details of a specific multisig transaction

  • Decoding transaction data for analysis

  • Integrating Safe functionality into other applications

FAQ from Safe MCP Server

What is the default API endpoint?

The server uses the Safe Transaction API mainnet endpoint by default: https://safe-transaction-mainnet.safe.global/api/v1

How can I use a different API endpoint?

Set the SAFE_API_URL environment variable to the desired endpoint before starting the server.

What is getSafeTransactions tool?

It retrieves all transactions for a given Safe address.

What does decodeTransactionData do?

It decodes transaction data using the Safe API.

Is configuration required?

No, the server works out of the box with the default mainnet endpoint. Configuration is optional.