drio
Open app

Safe MCP Server

Source

An MCP server implementation for interacting with Safe (Gnosis Safe) smart contract wallets

Catalog onlyCatalog onlySTDIO

Overview

Safe MCP Server is an implementation of an MCP (Model Context Protocol) server designed for interacting with Safe (formerly Gnosis Safe) smart contract wallets.

To use Safe MCP Server, install the package using npm, build the project, and start the server. No configuration is required as it defaults to the Safe Transaction API mainnet endpoint.

  • Query Safe transactions for any Safe address - Retrieve multisig transaction details - Decode transaction data - Integration with Safe API
  1. Managing and querying transactions for Gnosis Safe wallets.
  2. Analyzing multisig transaction details for auditing purposes.
  3. Decoding transaction data for better understanding of smart contract interactions.

Add to your AI client

Use these steps to connect Safe MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "safe-mcp-server-5ajaki": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-safe-mcp-server-5ajaki"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "safe-mcp-server-5ajaki": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-safe-mcp-server-5ajaki"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "safe-mcp-server-5ajaki": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-safe-mcp-server-5ajaki"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "safe-mcp-server-5ajaki": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-safe-mcp-server-5ajaki"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "safe-mcp-server-5ajaki": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-safe-mcp-server-5ajaki"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "safe-mcp-server-5ajaki": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-safe-mcp-server-5ajaki"
      ]
    }
  }
}

FAQ

Can I use Safe MCP Server for testnets?

Yes! You can configure the server to use different endpoints for testnets by setting the SAFE_API_URL environment variable.

Is there any configuration needed to start the server?

No, the server uses the Safe Transaction API mainnet endpoint by default, requiring no additional configuration.

What programming language is used for Safe MCP Server?

Safe MCP Server is built using JavaScript and runs on Node.js.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":904,"uuid":"04233960-1f7a-49bb-b4e5-fc2957bf8530","name":"safe-mcp-server","title":"Safe MCP Server","description":"An MCP server implementation for interacting with Safe (Gnosis Safe) smart contract wallets","avatar_url":"https://avatars.githubusercontent.com/u/125100304?v=4","created_at":"$D2025-01-28T02:17:28.630Z","updated_at":"$D2025-02-23T07:13:17.621Z","status":"created","author_name":"5ajaki","author_avatar_url":"https://avatars.githubusercontent.com/u/125100304?v=4","tags":"mcp,ethereum","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/5ajaki/safe-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]