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
Visit Server

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured