Tally DAO Governance MCP server

Integrates with the Tally API to query and analyze DAO governance data, enabling insights into decentralized decision-making processes.
Back to servers
Provider
Dennison Bertram
Release date
Jan 01, 2025
Language
TypeScript
Stats
6 stars

This MCP server for the Tally API allows AI agents to access DAO information, including governance data, proposals, and metadata through a structured interface. It serves as a bridge between AI systems and the Tally DAO ecosystem.

Installation

To get started with the MCP Tally API server:

# Clone the repository
git clone https://github.com/yourusername/mpc-tally-api-server.git
cd mpc-tally-api-server

# Install dependencies
bun install

# Build the project
bun run build

Configuration

Setting Up Your Environment

  1. Create a .env file in the root directory:

    TALLY_API_KEY=your_api_key_here
    
  2. Get your API key from Tally

Security Best Practices

⚠️ Important: Protect your API key by:

  • Never committing your .env file
  • Avoiding exposure in logs or error messages
  • Rotating your key if it's ever compromised
  • Using environment variables for configuration

Usage

Running the Server

Start the server using one of these commands:

# Standard mode
bun run start

# Development mode with auto-reload
bun run dev

Claude Desktop Integration

To integrate with Claude Desktop, add this to your configuration:

{
  "tally": {
    "command": "node",
    "args": [
      "/path/to/mpc-tally-api-server/build/index.js"
    ],
    "env": {
      "TALLY_API_KEY": "your_api_key_here"
    }
  }
}

API Functions

list_daos

This function retrieves a list of DAOs with sorting options.

Parameters:

  • limit (optional): Maximum number of DAOs to return (default: 20, max: 50)
  • afterCursor (optional): Cursor for pagination
  • sortBy (optional): Sorting criteria (default: popular)
    • Available options: "id", "name", "explore", "popular"

Example Usage:

// Example of calling the list_daos function
const results = await list_daos({
  limit: 10,
  sortBy: "popular"
});

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later