MCP Integration

Use your hectors.ai conversations from Claude Desktop and other MCP-compatible clients. Create, search, and manage conversations without leaving your tools.

What You Can Do

💬

Create conversations

Start a new conversation in any mode (think, build, write, explore, summarize, or cook) right from Claude.

🔍

Search your history

Find past conversations by keyword, filter by mode, and pick up where you left off.

📝

Add messages

Append user or assistant messages to any existing conversation.

📊

View usage stats

See how many conversations you have, broken down by mode and activity.

Everything you do through MCP syncs instantly with the hectors.ai web app and CLI. Your conversations, modes, and history stay in one place.

Prerequisites

  • A hectors.ai account with at least one API key configured.
  • An MCP client such as Claude Desktop.
  • Node.js 18+ (Optional, only required for the local proxy setup).

Setup & Configuration

Option A: Zero-Install Connector (Recommended)

Connect Claude Desktop directly to hectors.ai over the cloud. No local Node.js or terminal setup required.

  1. Open Claude Desktop and navigate to Settings > Connectors.
  2. Click Add custom connector (or + Add).
  3. Enter the Connector URL:
    text
    https://hectors.ai/api/mcp
  4. Click Add. A browser window will open automatically asking you to sign in to your hectors.ai account and authorize Claude.

Option B: Configuration File (via mcp-remote bridge)

Configure Claude Desktop manually via its JSON configuration file using the standard `mcp-remote` proxy.

  1. Open your Claude Desktop settings configuration file. On macOS, edit:~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add hectors.ai to the mcpServers section using the remote bridge:
    json
    {
      "mcpServers": {
        "hectors-ai": {
          "command": "npx",
          "args": ["-y", "mcp-remote@latest", "https://hectors.ai/api/mcp"]
        }
      }
    }
  3. Restart Claude Desktop. A browser window will open automatically asking you to sign in and authorize the connection.

Authentication & Security

We support two secure ways to connect Claude Desktop to your hectors.ai account:

Native OAuth (Option A)

Uses standard OAuth 2.1 with PKCE. Claude Desktop manages your credentials securely in the background using token discovery, redirecting to the official browser sign-in page.

Device Authorization (Option B)

Uses the OAuth 2.0 Device Code flow. The command-line script requests a verification URL and code on startup, and retrieves the secure session after you sign in in a browser.

Nothing stored on your machine

Your session is managed entirely on the hectors.ai cloud server. No sensitive credentials or master tokens are saved to disk. Sessions stay active while your client is running.

Read-only mode tools (list_modes, get_mode) are publicly available and can be run without signing in.

Available Tools

Once connected, these tools appear in your MCP client and can be called by you or by the AI assistant.

ToolWhat it does
Modes
list_modesSee all available conversation modes and their settings.
get_modeGet details about a specific mode (think, build, write, explore, summarize, cook).
Conversations
create_conversationStart a new conversation. Choose a mode and optionally set a title or first message.
get_conversationOpen a conversation by its ID to see its full message history.
update_conversationRename a conversation or change its mode.
delete_conversationPermanently delete a conversation.
list_conversationsBrowse your conversations with optional mode filtering and pagination.
search_conversationsSearch your conversations by keyword or title.
Messages & Stats
add_messageAdd a message to a conversation (as user, assistant, or system note).
get_statsView usage statistics: total conversations, breakdown by mode, recent activity.

Usage Examples

You don't need to write JSON to use these tools. Your MCP client handles the protocol. Just ask Claude naturally:

“Create a new conversation in build mode called ‘React Components’”

→ Calls create_conversation with mode "build" and title "React Components"

“Search my conversations for anything about TypeScript”

→ Calls search_conversations with query "TypeScript"

“Show me my usage stats”

→ Calls get_stats and presents a summary

“List all my recent build conversations”

→ Calls list_conversations with mode "build"

Troubleshooting

Tools don't appear in Claude Desktop

  • Make sure you restarted Claude Desktop after editing the config file.
  • Check that Node.js 18 or later is installed and available on your PATH.
  • Open the Claude Desktop logs to see if the MCP server reported any startup errors.

“Authentication required” errors

  • Restart the MCP server and it will walk you through the device code sign-in.
  • Make sure you are approving with the same hectors.ai account you use in the web app.

Changes not showing up in the web app

  • Changes made through MCP sync instantly. Try refreshing the web app.
  • Make sure you are signed in to the same account in both places.

Something else?

Reach out to us at Support and we'll help you get connected.