Safe MCP Server

5ajaki
MIT
Published: 2025-01-23
Last update: 10 months ago
# 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

```bash
npm install
```

## Usage

```bash
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.

```typescript
// 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.

```typescript
getMultisigTransaction({
  safeTxHash: "0x456...", // Transaction hash to query
});
```

### decodeTransactionData

Decode transaction data using Safe API.

```typescript
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:

```bash
SAFE_API_URL=https://safe-transaction-goerli.safe.global/api/v1 npm start
```

## Development

```bash
npm run dev
```

## License

MIT

Related

agentek-eth
agentek-eth
  • AGPL 3.0
blocknative-mcp
blocknative-mcp
  • kukapay
  • MIT
  • 2
Beyond MCP Server
Beyond MCP Server
  • Beyond-Network-AI
  • MIT
  • 11
Community
Name Description

Get details of a specific multisig transaction

Get all transactions for a Safe address

Decode transaction data using Safe API
Joseph Parker 20 Dec 2021 - 05:47AM

I am getting message from customers that when they place order always get error message .

Reply
Alexis Clarke 22 Dec 2021 - 02:32PM

Please be sure to check your Spam mailbox to see if your email filters have identified the email from Dell as spam.

Reply
Donald Palmer 24 Dec 2021 - 05:20PM

If you have further questions, please contact Customer Support from the “Action Menu” on your Online Order Support.

Reply
Alexis Clarke 26 min ago

Your Online Order Support provides you with the most current status of your order. To help manage your order refer to the “Action Menu” to initiate return, contact Customer Support and more.

Reply
Donald Palmer 8 sec ago

Other shipping methods are available at checkout if you want your purchase delivered faster.

Reply
Please Enter a Message

Security

95%

Code quantity

97%

Total downloads

4,305

80%

User reviews

121

89%