Safe MCP Server
by 5ajaki
An MCP server implementation for interacting with Safe (formerly Gnosis Safe) smart contract wallets. It provides tools to query Safe transactions, decode transaction data, and integrate with the Safe API.
Last updated: N/A
What is Safe MCP Server?
Safe MCP Server is an implementation of a Model Context Protocol (MCP) server designed to facilitate interactions with Safe (formerly Gnosis Safe) smart contract wallets. It allows users to query transaction data, decode transaction details, and integrate with the Safe API.
How to use Safe MCP Server?
To use the server, first install the dependencies using npm install
. Then, build the project using npm run build
and start the server with npm start
. The server uses the Safe Transaction API mainnet endpoint by default, but this can be configured using the SAFE_API_URL
environment variable.
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
Decoding complex transaction data from a Safe
Integrating Safe transaction information into other applications
Automated analysis of Safe transactions
FAQ from Safe MCP Server
What is the default API endpoint?
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 change the API endpoint?
How can I change the API endpoint?
You can set the SAFE_API_URL
environment variable to a different endpoint (e.g., for testnet).
What tools are available?
What tools are available?
The server provides tools like getSafeTransactions
, getMultisigTransaction
, and decodeTransactionData
.
How do I get all transactions for a Safe address?
How do I get all transactions for a Safe address?
Use the getSafeTransactions
tool, providing the Safe address and optional limit/offset parameters.
How do I decode transaction data?
How do I decode transaction data?
Use the decodeTransactionData
tool, providing the transaction data and optional contract address.