safe-mcp-server
An MCP server implementation for interacting with Safe smart contract wallets.
Safe MCP Server
An MCP (Model Context Protocol) server implementation for interacting with Safe (formerly Gnosis Safe) smart contract wallets.
Features
- Query Safe transactions for any Safe address
- Get multisig transaction details
- Decode transaction data
- Safe API integration
Installation
npm install
Usage
npm run build
npm start
No configuration is required - the server uses the Safe Transaction API mainnet endpoint by default.
Available Tools
getSafeTransactions
Get all transactions for any Safe address. The Safe address is determined by the LLM at runtime based on the context of the conversation.
// Example tool call
getSafeTransactions({
address: "0x123...", // Safe address determined by LLM
limit: 100, // optional
offset: 0, // optional
});
getMultisigTransaction
Get details of a specific multisig transaction.
getMultisigTransaction({
safeTxHash: "0x456...", // Transaction hash to query
});
decodeTransactionData
Decode transaction data using Safe API.
decodeTransactionData({
data: "0x789...", // Transaction data to decode
to: "0xabc...", // Optional contract address
});
Configuration (Optional)
By default, the server uses the Safe Transaction API mainnet endpoint:
https://safe-transaction-mainnet.safe.global/api/v1
If you need to use a different endpoint (e.g., for testnet), you can set it via environment variable:
SAFE_API_URL=https://safe-transaction-goerli.safe.global/api/v1 npm start
Development
npm run dev
License
MIT
Related MCP Servers
View all finance servers →mcp-server
by financial-datasets
This is a Model Context Protocol (MCP) server that provides access to stock market data from Financial Datasets.
evm-mcp-server
by mcpdotdirect
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across multiple EVM-compatible networks.
razorpay-mcp-server
by razorpay
The Razorpay MCP Server is a Model Context Protocol server that integrates with Razorpay APIs for advanced payment processing.
investor-agent
by ferdousbhai
The investor-agent is a Model Context Protocol server designed to provide comprehensive financial insights and analysis to Large Language Models.
mcp-cn-a-stock
by elsejj
This is an MCP (Model Content Protocol) service providing A-share data for large models.
mcp-trader
by wshobson
A Model Context Protocol (MCP) server designed for stock traders, offering a suite of tools for technical analysis and trading.
freqtrade-mcp
by kukapay
An MCP server that integrates with the Freqtrade cryptocurrency trading bot via its REST API, enabling seamless AI agent interaction for automated trading operation.