MPC Tally API Server

MPC Tally API Server

一个服务器,允许 AI 代理通过 Tally API 交互,使用模型上下文协议 (MCP) 访问 DAO 治理数据、提案和元数据。该服务器使用 TypeScript 和 GraphQL 构建。

Category
访问服务器

Tools

list-daos

List DAOs on Tally sorted by specified criteria

get-dao

Get detailed information about a specific DAO

list-delegates

List delegates for a specific organization with their metadata

get-delegators

Get list of delegators for a specific address

list-proposals

List proposals for a specific DAO or organization using its slug

get-proposal

Get detailed information about a specific proposal. You must provide either the Tally ID (globally unique) or both onchainId and governorId (unique within a governor).

get-address-votes

Get votes cast by an address for a specific organization

get-address-created-proposals

Get proposals created by an address for a specific organization

get-address-daos-proposals

Returns proposals from DAOs where a given address has participated (voted, proposed, etc.)

get-address-received-delegations

Returns delegations received by an address

get-delegate-statement

Get a delegate's statement for a specific governor or organization

get-address-governances

Returns the list of governances (DAOs) an address has delegated to

get-proposal-timeline

Get the timeline of events for a specific proposal

get-proposal-voters

Get a list of all voters who have voted on a specific proposal

get-address-metadata

Get metadata information about a specific Ethereum address

get-proposal-security-analysis

Get security analysis for a specific proposal, including threat analysis and simulations

get-proposal-votes-cast

Get vote statistics and formatted vote counts for a specific proposal

get-proposal-votes-cast-list

Get a list of votes cast for a specific proposal, including formatted vote amounts

get-governance-proposals-stats

Get statistics about passed and failed proposals for a specific DAO

README

MPC Tally API 服务器

一个用于与 Tally API 交互的模型上下文协议 (MCP) 服务器。该服务器允许 AI 代理获取有关 DAO 的信息,包括其治理数据、提案和元数据。

功能

  • 按受欢迎程度或探索状态对 DAO 进行排序和列表显示
  • 获取全面的 DAO 元数据,包括社交链接和治理信息
  • 支持分页以处理大型结果集
  • 使用 TypeScript 和 GraphQL 构建
  • 使用 Bun 的测试运行器进行全面测试覆盖

安装

# 克隆仓库
git clone https://github.com/yourusername/mpc-tally-api-server.git
cd mpc-tally-api-server

# 安装依赖
bun install

# 构建项目
bun run build

配置

  1. 在根目录中创建一个 .env 文件:
TALLY_API_KEY=your_api_key_here
  1. Tally 获取您的 API 密钥

⚠️ 安全提示: 确保您的 API 密钥安全:

  • 永远不要提交您的 .env 文件
  • 不要在日志或错误消息中暴露您的 API 密钥
  • 如果您的 API 密钥被泄露,请轮换它
  • 使用环境变量进行配置

使用

运行服务器

# 启动服务器
bun run start

# 具有自动重新加载的开发模式
bun run dev

Claude Desktop 配置

将以下内容添加到您的 Claude Desktop 配置中:

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

可用脚本

  • bun run clean - 清理构建目录
  • bun run build - 构建项目
  • bun run start - 运行构建后的服务器
  • bun run dev - 以自动重新加载的开发模式运行
  • bun test - 运行测试
  • bun test --watch - 在监视模式下运行测试
  • bun test --coverage - 运行带有覆盖率的测试

API 函数

服务器公开以下 MCP 函数:

list_daos

列出按指定条件排序的 DAO。

参数:

  • limit (可选): 要返回的 DAO 的最大数量(默认值:20,最大值:50)
  • afterCursor (可选): 用于分页的游标
  • sortBy (可选): 如何对 DAO 进行排序(默认值:popular)
    • 选项: "id", "name", "explore", "popular"

许可证

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选