Skip to main content

MCP Integration

Connect AI assistants to Sercha using the Model Context Protocol (MCP). This allows AI tools like Claude, ChatGPT, and Microsoft Copilot to search your indexed documents directly.

Accurate as of April 2026

Prerequisites - Before you start, make sure you have:

  • A running Sercha instance with indexed content
  • For remote clients (Claude.ai, ChatGPT, Copilot): HTTPS and a public URL
  • For Claude Desktop: Node.js installed (for npx)

Available Tools

Sercha exposes three MCP tools that AI assistants can use:

ToolDescriptionScope
searchSearch across all indexed documents using hybrid (BM25 + semantic) searchmcp:search
get_documentRetrieve the full content and metadata of a document by IDmcp:documents:read
list_sourcesList all available document sourcesmcp:sources:list

Your MCP Server URL

For local development:

http://localhost:8080/mcp

For production (required for Claude.ai, ChatGPT, Copilot):

https://your-sercha-domain.com/mcp
warning

Claude.ai, ChatGPT, and Microsoft Copilot connect from their cloud infrastructure. Your Sercha instance must be publicly accessible over HTTPS for these clients to work.


Client Setup

Connect Sercha to Claude.ai to search your documents from the web interface.

For Pro and Max Plans

1. Open Connectors settings

Click your profile icon, then go to CustomizeConnectors.

2. Add a custom connector

Click the + button, then select Add custom connector.

3. Enter your Sercha MCP URL

https://your-sercha-domain.com/mcp

4. Configure OAuth (optional)

Expand Advanced settings to enter OAuth credentials if you want automatic authentication:

FieldValue
OAuth Client ID(leave blank for dynamic registration)
OAuth Client Secret(leave blank for dynamic registration)
tip

You can leave OAuth fields blank. Sercha supports Dynamic Client Registration, so Claude.ai will automatically register as a client.

5. Click Add

The connector is now configured.

6. Enable in conversations

In any conversation, click +Connectors and toggle Sercha on.


For Team and Enterprise Plans

Admin setup (Owners only):

  1. Go to Organization settingsConnectors
  2. Click Add
  3. Select CustomWeb
  4. Enter your Sercha MCP URL
  5. Configure OAuth in Advanced settings (optional)
  6. Click Add

Member access:

  1. Go to CustomizeConnectors
  2. Find the Sercha connector (labeled "Custom")
  3. Click Connect to authenticate

Limitations

PlanCustom Connector Limit
Free1 connector
Pro, Max, Team, EnterpriseMultiple connectors

Example Prompts

Once connected, try these prompts with any AI assistant:

"Search my documents for authentication implementation"

"Find all documents related to the onboarding process"

"What sources do I have indexed?"

"Get the full content of document doc_abc123"

The AI will automatically call the appropriate Sercha tool and incorporate the results into its response.


Security

  • OAuth 2.0 with PKCE — All authentication uses secure OAuth flows
  • Scoped access — Tools only access what the scopes allow
  • No write operations — MCP tools are read-only (search, retrieve, list)
  • Dynamic Client Registration — Clients register automatically via RFC 7591

Deployment Checklist

For Claude.ai, ChatGPT, and Copilot (remote clients):

RequirementHow to Set
HTTPSDeploy behind a reverse proxy with SSL (nginx, Cloudflare, etc.)
Public URLEnsure Sercha is accessible from the internet
BASE_URLSet env var: BASE_URL=https://your-sercha-domain.com
UI_BASE_URLSet env var: UI_BASE_URL=https://your-app-domain.com

For Claude Desktop (local):

RequirementHow to Set
Node.jsInstall from nodejs.org
Config fileCreate/edit claude_desktop_config.json