MS
Embed & Developer

MCP Server

Query your docs from Cursor, Windsurf, and Claude Desktop

What is MCP Server?

The Model Context Protocol (MCP) is an open standard that allows AI tools like Cursor, Windsurf, and Claude Desktop to connect to external data sources and call them as structured tools during a conversation. BeforeQuery exposes a per-project MCP server that makes your documentation queryable from any MCP-aware environment.

Integration

How BeforeQuery works with MCP Server

Everything you can do once the integration is connected.

Per-project MCP endpoint

Each BeforeQuery project has its own MCP server at POST https://api.beforequery.com/mcp/projects/:projectId, authenticated with a client key (X-Client-Key header).

search_docs, ask_question, list_sources tools

The MCP server exposes three tools: search_docs for hybrid semantic search, ask_question for a full RAG-grounded answer, and list_sources for metadata about indexed content.

Works with Cursor, Windsurf, and Claude Desktop

Add your BeforeQuery MCP server to any MCP-aware IDE or AI assistant. Developers can query your docs inline without leaving their editor.

Client key authentication

Secure the MCP endpoint with a scoped client key. Restrict which collections and content the MCP tool can access via per-key permissions.

Setup

How to set it up

1

In BeforeQuery, create a client key under Project > Client Keys. Copy the key and your project ID.

2

In your MCP client (e.g., Cursor settings, Claude Desktop config), add the BeforeQuery MCP server with the endpoint URL and X-Client-Key header.

3

Test by asking a question in your IDE — the AI will call search_docs or ask_question and return a grounded answer from your docs.

Ready to connect MCP Server?

Start free. No credit card required. Connect your first integration in under 5 minutes.