Connect your AI tool to Maindex
Maindex uses the Model Context Protocol (MCP) so any compatible AI client can read and write memories. Most clients support OAuth and will prompt you to log in automatically — just provide the URL below. Pick your tool for step-by-step instructions.
Maindex plugins for Cursor, Claude Code, OpenClaw, Gemini CLI, and ChatGPT bundle the MCP server with curated rules, skills, and an Archivist agent. View Plugins & Apps →
Cursor
AI-native code editor with built-in MCP support.
Cursor reads MCP servers from a JSON file. Use a project-level file for per-repo config, or a global file for all workspaces.
| Scope | Path |
|---|---|
| Project | .cursor/mcp.json |
| Global | ~/.cursor/mcp.json |
Just provide the URL. Cursor will open a browser window for you to log in via OAuth.
{
"mcpServers": {
"maindex": {
"type": "streamableHttp",
"url": "https://maindex.io/mcp"
}
}
}
If OAuth is unavailable in your environment, use an API key from your dashboard as a fallback.
{
"mcpServers": {
"maindex": {
"type": "streamableHttp",
"url": "https://maindex.io/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Fully quit and reopen Cursor. MCP servers are loaded at startup. You can verify the connection under Settings → Tools & MCP.
Claude Desktop
Anthropic's desktop app for Claude.
Go to Settings → Developer → Edit Config, or open the file directly:
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Just provide the URL. Claude Desktop will open a browser window for you to log in via OAuth.
{
"mcpServers": {
"maindex": {
"url": "https://maindex.io/mcp"
}
}
}
If OAuth is unavailable in your environment, use an API key from your dashboard as a fallback.
{
"mcpServers": {
"maindex": {
"url": "https://maindex.io/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Fully quit and reopen the app. Look for the hammer icon in the chat input area to confirm MCP tools are loaded.
Claude Code
Anthropic's agentic CLI for the terminal.
Just provide the URL. Claude Code will open a browser for you to log in via OAuth.
claude mcp add --transport http maindex https://maindex.io/mcp
This saves to the local scope by default (current project). Add --scope user for all projects, or --scope project to commit a shared .mcp.json.
OAuth requires a local browser. If you are using Claude Code over SSH, use the API Key method instead.
Use an API key from your dashboard when OAuth is unavailable (e.g. SSH remote sessions).
claude mcp add --transport http --header "X-API-Key: YOUR_API_KEY" maindex https://maindex.io/mcp
This saves to the local scope by default (current project). Add --scope user for all projects, or --scope project to commit a shared .mcp.json.
List your configured servers to confirm:
claude mcp list
ChatGPT
OpenAI's ChatGPT desktop app with MCP connectors.
Open Settings → Apps & Connectors → Advanced settings and toggle Developer Mode on.
Click Create under Apps & Connectors and fill in:
| Field | Value |
|---|---|
| Connector URL | https://maindex.io/mcp |
| Name | Maindex |
| Description | Long-term memory for AI agents |
ChatGPT will handle authentication via OAuth automatically — you'll be prompted to log in when you first use the connector.
In any chat, toggle the Maindex connector on in the compose area to give ChatGPT access to your memories.
Windsurf
Codeium's AI-powered code editor.
Use the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and search for "Windsurf: Configure MCP Servers", or edit the file directly:
| OS | Path |
|---|---|
| macOS / Linux | ~/.codeium/windsurf/mcp_config.json |
| Windows | %USERPROFILE%\.codeium\windsurf\mcp_config.json |
Just provide the URL. Windsurf will open a browser consent screen for you to log in via OAuth.
{
"mcpServers": {
"maindex": {
"serverUrl": "https://maindex.io/mcp"
}
}
}
If OAuth is unavailable in your environment, use an API key from your dashboard as a fallback.
{
"mcpServers": {
"maindex": {
"serverUrl": "https://maindex.io/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Fully quit and reopen Windsurf. Check the hammer icon in the Chat pane to verify the server is connected.
Gemini CLI
Google's command-line interface for Gemini.
The Maindex extension for Gemini CLI bundles the MCP server with a context file (GEMINI.md), slash commands, and Archivist behavior. Clone from: git clone https://github.com/maindexapp/gemini-plugin.git
If you prefer a manual MCP-only setup without the extension content, follow the steps below.
Just provide the URL. Gemini CLI will open a browser for you to log in via OAuth.
gemini mcp add --transport http maindex https://maindex.io/mcp
This saves to your project-level config at .gemini/settings.json. For global config, edit ~/.gemini/settings.json directly.
If OAuth is unavailable in your environment, use an API key from your dashboard as a fallback.
gemini mcp add --transport http --header "X-API-Key: YOUR_API_KEY" maindex https://maindex.io/mcp
Or edit the JSON config directly:
{
"mcpServers": {
"maindex": {
"url": "https://maindex.io/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Google Antigravity
Google's agent-first IDE for natural-language development.
Click the three dots (…) in the top-right corner of Antigravity, then select MCP Servers. Click Manage MCP Servers → View raw config to open the JSON editor.
Just provide the URL. Antigravity will handle OAuth authentication automatically.
{
"mcpServers": {
"maindex": {
"url": "https://maindex.io/mcp"
}
}
}
If OAuth is unavailable in your environment, use an API key from your dashboard as a fallback.
{
"mcpServers": {
"maindex": {
"url": "https://maindex.io/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Use the refresh button in the MCP Servers panel to verify the connection. Maindex tools will appear when you use the @ prompt.
LM Studio
Run local models with MCP tool support.
LM Studio reads MCP servers from a JSON file. Open it via the in-app MCP editor, or edit the file directly:
| OS | Path |
|---|---|
| macOS / Linux | ~/.lmstudio/mcp.json |
| Windows | %USERPROFILE%\.lmstudio\mcp.json |
LM Studio does not yet support OAuth for remote MCP servers, so an API key is required. Create one in your dashboard and paste it below.
{
"mcpServers": {
"maindex": {
"url": "https://maindex.io/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
LM Studio auto-reloads when you save mcp.json. Make sure you are using a tool-capable model (Llama 3.1+, Mistral, Qwen 2.5, etc.) for MCP tools to appear.
Open WebUI
Self-hosted web interface for Ollama and other backends.
Go to Admin Settings → External Tools. Requires Open WebUI v0.6.31 or later.
Enter the URL and select OAuth 2.1 as the auth type. Open WebUI will handle the OAuth flow automatically.
| Field | Value |
|---|---|
| Server URL | https://maindex.io/mcp |
| Type | MCP (Streamable HTTP) |
| Auth | OAuth 2.1 |
If OAuth is unavailable, create an API key in your dashboard and use it as a Bearer token.
| Field | Value |
|---|---|
| Server URL | https://maindex.io/mcp |
| Type | MCP (Streamable HTTP) |
| Auth | Bearer Token |
| Token | YOUR_API_KEY |
Click + (Add Server), then enable the Maindex tools in individual chats. Note: OAuth-connected tools must be enabled manually per chat and cannot be set as defaults.
If Open WebUI runs in Docker and you are connecting to a local Maindex instance, use http://host.docker.internal:PORT/mcp instead of localhost. Set the WEBUI_SECRET_KEY environment variable to prevent token errors on container restart.
Msty
Desktop AI app with MCP Toolbox support.
In Msty, open the Toolbox and click Add New Tool.
Msty does not yet support OAuth for remote MCP servers, so an API key is required. Create one in your dashboard.
| Field | Value |
|---|---|
| Type | HTTP |
| MCP Server URL | https://maindex.io/mcp |
| Header name | X-API-Key |
| Header value | YOUR_API_KEY |
Maindex tools should appear in your Toolbox. Make sure Msty Sidecar is running if you are using Msty Studio Web.
OpenClaw
Open-source autonomous AI agent platform.
The Maindex native plugin for OpenClaw bundles MCP integration with OAuth, skills, and Archivist behavior. Clone from: git clone https://github.com/maindexapp/openclaw-plugin.git
If you prefer a manual MCP-only setup without the plugin, you can use the community bridge plugin below.
For a manual connection without the native Maindex plugin, the community openclaw-mcp-bridge plugin provides Streamable HTTP transport.
Add Maindex to your ~/.openclaw/openclaw.json:
{
"plugins": {
"enabled": true,
"entries": {
"openclaw-mcp-bridge": {
"config": {
"servers": [
{
"name": "maindex",
"url": "https://maindex.io/mcp",
"prefix": "maindex",
"healthCheck": true
}
],
"timeout": 30000
}
}
}
}
}
Then restart the gateway:
openclaw gateway restart && openclaw mcp list
The bridge plugin passes headers to the remote server. Create an API key in your dashboard and configure it according to the bridge plugin docs.
Maindex works with any MCP client that supports Streamable HTTP. Point it at your MCP URL and authenticate via OAuth or API key. If you'd like us to add instructions for your tool, let us know.
OAuth (recommended) — Most MCP clients support OAuth and will prompt you to log in via your browser automatically. Just provide the MCP URL with no extra configuration. Maindex publishes standard .well-known/oauth-protected-resource and .well-known/oauth-authorization-server discovery endpoints so clients can find the authorization server on their own.
API Key (fallback) — If your client does not support OAuth, or you are in a headless/remote environment without a browser, create an API key in your Maindex dashboard under Settings → API Keys and pass it via the X-API-Key header.