engain-mcp

engain-mcp

Enables programmatic Reddit growth campaign management via the Engain API, including task scheduling, upvote/downvote orders, opportunity discovery, and account management.

Category
访问服务器

README

engain-mcp

An MCP server that wraps the Engain v1 API, so Claude Code and other MCP clients can drive Engain — Reddit growth campaigns, tasks, upvote/downvote orders, opportunity & mention discovery — programmatically.

node types license

It's a thin, hand-authored wrapper over Engain's documented REST API. Each endpoint becomes an MCP tool with a typed input schema and an agent-friendly description, so an LLM agent can discover projects, scan opportunities, draft and schedule tasks, place upvote orders, and read account state — all through one connected MCP server.

Quick start (Claude Code)

Add the server to your MCP config (~/.claude.json, or a project .mcp.json):

{
  "mcpServers": {
    "engain": {
      "command": "npx",
      "args": ["-y", "engain-mcp"],
      "env": {
        "ENGAIN_API_KEY": "eng_your_key_here",
        "ENGAIN_PROJECT_ID": "optional-default-project-id",
        "ENGAIN_MCP_READONLY": "false"
      }
    }
  }
}

Generate your ENGAIN_API_KEY in the Engain app under Settings → API (MAX-plan workspace). Restart your MCP client and the engain_* tools become available.

Configuration

Env var Required Default Purpose
ENGAIN_API_KEY Your Engain API key (eng_…). Sent as the X-API-Key header.
ENGAIN_BASE_URL https://api.engain.io API host. Point at a non-prod deployment for testing.
ENGAIN_PROJECT_ID Default project ID for project-scoped tools when one isn't passed.
ENGAIN_MCP_READONLY false When truthy (1/true/yes), all credit-spending tools are hidden.

Spend safety

Six tools spend credits: engain_create_comment_task, engain_create_post_task, engain_create_reply_task, engain_create_thread_task_group, engain_create_upvote_order, engain_create_downvote_order.

Set ENGAIN_MCP_READONLY=true and those six are never registered — the agent sees only the 23 read-only tools. With spending enabled, each spend tool returns the credits charged and remaining balance in its result, so the agent always sees what it just spent.

Tools (29)

Every tool is prefixed engain_. Project-scoped tools take an optional projectId that falls back to ENGAIN_PROJECT_ID; call engain_get_me to discover project IDs.

Account

  • engain_get_me — current user + accessible projects
  • engain_get_balance — remaining credits and free comments
  • engain_list_credit_transactions — paginated credit history

Tasks (read)

  • engain_list_tasks, engain_get_task, engain_get_tasks_bulk
  • engain_get_rank_metrics — recommended upvote metrics for a URL (no credits; 5 req/min)

Tasks (spend 💳)

  • engain_create_comment_task, engain_create_post_task, engain_create_reply_task, engain_create_thread_task_group

Orders (read)

  • engain_list_orders, engain_get_order, engain_get_orders_bulk

Orders (spend 💳)

  • engain_create_upvote_order, engain_create_downvote_order

Discovery

  • engain_list_opportunities, engain_get_opportunity
  • engain_list_mentions, engain_get_mention, engain_get_mention_stats, engain_get_mention_brands

Labels

  • engain_list_labels, engain_create_label, engain_delete_label
  • engain_add_task_labels, engain_remove_task_labels, engain_add_order_labels, engain_remove_order_labels

How it works

  • X-API-Key auth on every request; the base path is always /api/v1.
  • Project resolution — project-scoped tools use the call's projectId, else ENGAIN_PROJECT_ID, else return a clear error pointing you at engain_get_me.
  • Resilient errors — non-2xx responses become structured errors (status, code, message); 429 rate limits are retried automatically with backoff (honoring Retry-After, up to 3 attempts).
  • Transport — stdio today; the tool/client layer is transport-agnostic so a remote (HTTP) transport can be added without touching tools.

Development

npm install
npm test          # vitest unit suite
npm run typecheck # tsc --noEmit (vitest does not typecheck)
npm run build     # emits dist/ (tests excluded from the package)

Architecture: src/config.ts (env) → src/client.ts (EngainClient/EngainError) → src/tools/* (one module per domain; each tool is an EngainTool made with defineTool) → src/tools/index.ts (buildToolRegistry, applies the readonly filter) → src/server.ts / src/bin.ts (MCP stdio wiring). Tools are plain data objects, so the whole surface is unit-testable without the MCP SDK.

License

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选