Repliz MCP Server

Repliz MCP Server

Enables AI assistants to manage Repliz workspaces via natural language, including listing and replying to comments, scheduling posts, handling DMs, and browsing content and stats.

Category
访问服务器

README

Repliz MCP Server

A Model Context Protocol (MCP) server for the Repliz Public API. It lets any MCP-compatible AI client — Claude Desktop, Claude Code, Cursor, and others — manage your Repliz workspace through natural language: list and reply to comments, schedule posts, handle DMs, browse content and stats, research Threads, and more.

What is MCP, and where is it used? MCP is an open standard that lets AI assistants call external tools. Your AI client connects to this server and gains a set of "tools" (one per Repliz action). You can then say things like "reply to the latest pending comment" or "schedule this image to Instagram tomorrow at 9am", and the assistant calls the right Repliz API for you.

Two ways to run

Mode Transport For Clients
Local stdio (a subprocess on your machine) yourself / per-user setups Claude Desktop, Claude Code, Cursor, VS Code, Gemini CLI, …
Remote Streamable HTTP (a hosted HTTPS endpoint) many users via web/hosted clients Claude.ai connectors, ChatGPT developer mode, API integrations

Important: web chat apps (Claude.ai, ChatGPT, the Gemini app) only accept remote servers — they cannot launch a local process. ChatGPT in particular supports only remote MCP servers. Use Local mode for desktop/dev tools; use Remote mode to serve many users through the web apps.


Features

33 tools across the Repliz Public API, grouped by domain:

Group Tools
Accounts list, count, get, delete
Comments (inbox) list, get, reply, update status
Schedule (posts) list, get, create, update, retry, delete, bulk delete
Chat (DMs) list, get, list messages, send message, mark read
Content list, get, list comments, comment, statistics, DM commenter, delete comment
Research (Threads) search content, user content, user profile
Add-ons TikTok trending music, Shopee products, link metadata

Account OAuth connection flows (authorize/exchange/connect) are intentionally not included — they are interactive, multi-step browser flows better done from the Repliz web app. Everything else for day-to-day operation is here.


Prerequisites

  • Node.js 18+ (uses the built-in fetch)
  • A Repliz API Access Key and Secret Key (from your Repliz workspace → Developer / API settings)

The Repliz Public API authenticates with HTTP Basic Auth: the Access Key is the username, the Secret Key is the password.


Installation

Option A — from source (recommended while developing)

git clone <your-repo-url> repliz-mcp
cd repliz-mcp
npm install
npm run build

This produces dist/index.js, the runnable server.

Option B — via npx (after you publish to npm)

npx repliz-mcp

Local mode (stdio)

Run the server as a subprocess from a desktop or developer client. Credentials come from environment variables:

Variable Required Default Description
REPLIZ_ACCESS_KEY Your API Access Key (Basic Auth username)
REPLIZ_SECRET_KEY Your API Secret Key (Basic Auth password)
REPLIZ_BASE_URL https://api.repliz.com API base URL; override only if needed

Copy .env.example to .env for local testing (it is auto-loaded on startup for npm start / npm run dev), but never commit .env. When launched by an MCP client, credentials come from the client's env config block (below); real environment variables always take precedence over .env.

Claude Desktop

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

{
  "mcpServers": {
    "repliz": {
      "command": "node",
      "args": ["/absolute/path/to/repliz-mcp/dist/index.js"],
      "env": {
        "REPLIZ_ACCESS_KEY": "your_access_key",
        "REPLIZ_SECRET_KEY": "your_secret_key"
      }
    }
  }
}

Restart Claude Desktop; the Repliz tools appear in the tools menu.

Claude Code (CLI)

claude mcp add repliz \
  --env REPLIZ_ACCESS_KEY=your_access_key \
  --env REPLIZ_SECRET_KEY=your_secret_key \
  -- node /absolute/path/to/repliz-mcp/dist/index.js

Cursor

In .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "repliz": {
      "command": "node",
      "args": ["/absolute/path/to/repliz-mcp/dist/index.js"],
      "env": {
        "REPLIZ_ACCESS_KEY": "your_access_key",
        "REPLIZ_SECRET_KEY": "your_secret_key"
      }
    }
  }
}

Any MCP client works — point its command/args at node dist/index.js (or npx repliz-mcp once published) and pass the two env vars.


Remote mode (HTTP) — for web clients & multiple users

Run a hosted server that many users connect to over HTTPS. Each user supplies their own Repliz credentials per request, so one deployment serves everyone.

Run it

npm run build
npm run start:http          # or: REPLIZ_TRANSPORT=http node dist/index.js
Variable Required Default Description
REPLIZ_BASE_URL https://api.repliz.com API base URL (shared by all users)
PORT 3000 Port to listen on
REPLIZ_ACCESS_KEY / REPLIZ_SECRET_KEY Optional fallback creds for single-tenant hosting. Leave unset for multi-user.

The MCP endpoint is POST/GET/DELETE https://<your-host>/mcp, plus a GET /health check. The server must be served over HTTPS in production (put it behind a reverse proxy / platform TLS — Railway, Fly.io, Render, Cloudflare, Nginx, etc.).

Per-user authentication (header)

Each user passes their Repliz credentials on the request, in either form:

Authorization: Basic base64(accessKey:secretKey)
X-Repliz-Access-Key: <accessKey>
X-Repliz-Secret-Key: <secretKey>

Credentials are captured when the MCP session is initialized and bound to that session only — users are isolated from one another. Requests with no valid credentials are rejected with 401.

Which clients can send these headers?

  • API integrations — the Anthropic Messages API and OpenAI Responses API let you attach an auth token / headers to a remote MCP server. This is the smoothest path for header auth.
  • MCP clients that allow custom headers (many desktop clients, Cursor's remote server config, etc.).
  • ⚠️ Consumer web UIs (Claude.ai, ChatGPT) — their "add custom connector" screens are built around OAuth, and may not let users paste arbitrary headers. For a frictionless "click Connect" experience there, add an OAuth layer (see Roadmap below). Header auth still works for everything else.

Connect from the web apps

Claude.ai (Pro/Max/Team/Enterprise): Settings → Connectors → Add custom connector → enter https://<your-host>/mcp. (Team/Enterprise: an owner adds it under Organization settings → Connectors first.)

ChatGPT (Plus/Pro/Business/Enterprise): Settings → Connectors → Advanced → enable Developer mode, then add a connector pointing at https://<your-host>/mcp. (Connectors are now labelled "Apps".)

Anthropic API (programmatic): pass the server under mcp_servers with type: "url", url: "https://<your-host>/mcp", and your Repliz Basic token in the connector's authorization_token.

Security notes

  • Always serve over HTTPS; credentials travel in headers.
  • Session ids are random UUIDs held in memory; this server is single-instance. For horizontal scaling use sticky sessions or a shared session store.
  • Treat write tools (reply, schedule, delete) as powerful — review actions, and beware prompt-injection from untrusted content the model reads.

Usage examples

Once connected, ask your assistant things like:

  • "List my connected accounts."
  • "Show pending comments and reply to the newest one with a thank-you."
  • "Schedule this video to Instagram on 2026-06-20 at 09:00 UTC."
  • "What are the trending POP songs on TikTok in Indonesia this week?"
  • "Get engagement stats for my latest post on account <id>."

Development

npm run dev          # stdio server from TS source via tsx (no build step)
npm run dev:http     # HTTP server from TS source
npm run build        # compile to dist/
npm run start        # run built stdio server
npm run start:http   # run built HTTP server
node scripts/smoke-test.mjs        # stdio: spawn server and list tools
node scripts/http-smoke-test.mjs   # http: needs server on :3344 (header auth)

Source layout:

src/
  index.ts          # entry point: dispatches stdio vs http
  server.ts         # createReplizServer(client) — shared by both transports
  config.ts         # env config + per-request header credential parsing
  client.ts         # HTTP client (Basic auth, query/body handling, errors)
  transports/
    stdio.ts        # local stdio transport (env credentials)
    http.ts         # remote Streamable HTTP transport (per-user header auth)
  tools/
    helpers.ts      # registerTool() wrapper + error formatting
    account.ts comment.ts schedule.ts chat.ts content.ts research.ts addon.ts
    index.ts        # registers all tool groups
api.json            # the source OpenAPI spec (reference)

Roadmap

  • OAuth for web connectors — add an OAuth authorization layer so users can click "Connect" in Claude.ai / ChatGPT without pasting credentials. Today those consumer UIs favor OAuth; header auth covers API and custom-header clients.
  • Optional account OAuth connect flows (currently done via the Repliz web app).

Security & publishing the repository

Yes, this repository is safe to make public — it contains no secrets. Credentials are supplied at runtime via environment variables, never hard-coded. Before pushing, double-check:

  • .env is git-ignored (it is, via .gitignore) and not committed.
  • ✅ No Access/Secret keys are pasted into README, configs, or code.
  • api.json contains only API definitions and example data (no live keys).

Each user supplies their own Repliz API keys in their own client config, so publishing the code is the normal, expected way to distribute an MCP server.

To publish on npm so anyone can run npx repliz-mcp:

npm login
npm publish --access public

License

MIT — see LICENSE.

推荐服务器

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

官方
精选