mcp-connect

mcp-connect is a command for coding agents from algolia/skills. It costs 12 tokens per session (1,024 once invoked), scanned A, original, MIT.

A setup command for connecting Claude Code, Codex, VS Code, Cursor, or Gemini CLI to Algolia's MCP server, which lets supported tools work with Algolia.

In plain words
What is it for?
Use it to enable an MCP connection for Algolia workflows, provided you have an Algolia account and have enabled the required server.
Why use it?
It handles client detection, configuration, account sign-in, and connection testing instead of requiring manual setup.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/algolia/skills/mcp-connect
Clone the repo
git clone --depth 1 https://github.com/algolia/skills

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-connect

README.md
[![agentmods](https://agentmods.dev/badge/commands/algolia/skills/mcp-connect.svg)](https://agentmods.dev/commands/algolia/skills/mcp-connect)
Your own site
<a href="https://agentmods.dev/commands/algolia/skills/mcp-connect"><img src="https://agentmods.dev/badge/commands/algolia/skills/mcp-connect.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.01024
Opus 5 $0.00006 $0.00512
Sonnet 5 $0.00002 $0.00205
Haiku 4.5 $0.00001 $0.00102

Measured 4d ago against content hash 3e7a17fb62d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-connect scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. Check network connectivity: `curl https://mcp.algolia.com`
commands/mcp-connect.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Algolia MCP Connection Setup

This command guides you through connecting your MCP client to the Algolia MCP server.

What This Command Does

  1. Detects your MCP client - Finds Claude Code, Codex, VS Code, Cursor, or Gemini CLI
  2. Writes configuration - Automatically updates your config file or runs the appropriate CLI command
  3. Starts OAuth flow - Authenticates with your Algolia account
  4. Validates connection - Tests that everything works

Prerequisites

Before running this command, ensure you have:

  • Algolia account (sign up free)
  • Algolia MCP enabled in Dashboard (Generate AI → MCP Servers → Productivity)
  • Supported MCP client installed: Claude Code, Codex, Cursor, VS Code, or Gemini CLI

Usage

/algolia-mcp:mcp-connect

Step-by-Step Process

Step 1: Enable Productivity MCP in Algolia Dashboard

  1. Go to Generate AIMCP ServersProductivity
  2. Click Enable

OAuth-based authentication — no embedded credentials. Disabling the MCP server stops all connected workflows immediately.

Step 2: Detect MCP Client

The command detects your MCP client by checking:

  1. Claude Code CLI

    • Detected via claude command in PATH
    • Configured via claude mcp add --transport http
  2. Codex CLI

    • Detected via codex command in PATH
    • Configured via codex mcp add --url
  3. VS Code

    • Config: ~/.vscode/mcp.json
  4. Cursor

    • Config: ~/.cursor/mcp.json
  5. Gemini CLI

    • Detected via gemini command in PATH
    • Configured via gemini mcp add

If multiple clients are detected, you'll be asked which one to configure.

Step 3: Write Configuration

Apply the configuration from connection-setup.md for the detected client.

The command will:

  • Read your existing config (if it exists)
  • Merge the Algolia server configuration
  • Preserve other servers you've configured
  • Write the updated config back
  • Create a backup (.bak file)

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 154 lines · 12 tokens per session scan A 3e7a17fb62d6

Subscribe to this mod's changes

mcp-connect is a command published in the GitHub repository algolia/skills (12 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 1,024 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.