2026-09-22 • Updated 2026-09-26 • 7 min read • Connect
How to Let AI Agents Search Your Documentation With MCP
Give Claude, Cursor, or Codex a search tool for your docs with an MCP server, then confirm each reply cites a page you can open. No code required.
To let AI agents search your documentation with MCP, you give them a search tool that runs over your pages. That tool lives on an MCP server built from your docs. Context MCP Studio creates and hosts the server without code: you add the documentation URL, turn on Search Documentation, and deploy. When Claude, Cursor, Windsurf, or Codex needs an answer, it calls the tool and gets passages from your pages, each with a link you can open.
By the end of this guide you will have a docs search server connected to the agent you use, and a two-question test that shows whether replies come from your pages or from what the agent already knew.
How an AI agent searches your docs
The search box on your site is for a person. An agent needs a tool. An
agent in Claude or Cursor never visits your site. It answers from what it
already knows unless it has a tool that reaches your content. On an MCP server,
that tool is Search Documentation (search_docs).
The agent sends a question, and the server sends back passages. MCP Studio
indexes your pages ahead of time, splitting each one into passages. When the
agent calls search_docs, the server returns the best matching passages, each
linked to its page. Passages are matched on meaning as well as wording, so a
question about "logging in" can still find a page about authentication. The
agent does not crawl your site at query time.
This guide uses one example throughout: a help center page that explains how a customer rotates an API key, with a title you can check in one click.
Which tools to pair with search
MCP Studio asks you to choose between 3 and 10 tools. For a documentation server, a good starting set is:
- Search Documentation (
search_docs) returns matching passages and links. - Ask a Question (
ask_question) takes a whole natural-language question and gathers the passages that answer it from every connected source. - Get Quickstart Guide (
get_quickstart) pulls setup and getting started content, which is often the first thing a new user asks for.
Add Find API Reference (find_api_reference) when the docs describe an API.
The tool guide
lists what each tool returns.
How to build the server in MCP Studio
MCP Studio is the no-code MCP server builder on Appa Tools.
- Open the wizard. The wizard itself takes about a minute.
- Name it for the docs.
Help center searchis easy to recognize in the agent's tool list. - Add the documentation URL. Start at
/docsif the rest of the domain is marketing. A website source is crawled up to 5,000 pages on the same hostname. - Select your tools, starting from the set above.
- Deploy. The endpoint is live straight away and indexing runs in the background. Wait until the source shows complete before you judge a miss.

Copy the URL from the setup page:
https://appatools.com/mcp-studio/api/mcp/your-server-name
How to connect the agent
Add the URL to the client you actually use. The settings location for Claude
Desktop, Cursor, and Windsurf is in
Connect to AI tools,
and Claude's click path is in
Give Claude access to your documentation.
For Codex, run codex mcp add help-center --url <url> or use Settings > MCP
servers in the ChatGPT desktop app, then start a new session. Typing /mcp
lists what is connected. Details are in
Connect an MCP server to Codex.
How to check that it works
Ask a question whose page you already know.
Which page explains how a customer rotates an API key?
The reply should name that page and link to it. Open the link. Then confirm the tool call in the client: most chats show MCP activity beside the reply, and that activity is the difference between your docs and a confident guess.
Ask something the docs do not answer. When nothing matches, the server says so before anything else.
You: What is the office wifi password?
Assistant: Nothing in this server's content covers an office wifi password. The closest material is the key rotation guide, which is a different subject. You would need to add that document as a source.
Those misses are useful later. Find documentation gaps with MCP analytics shows how to read them as a writing backlog.
If the wrong page comes back
Change one thing, then ask the same question again. If there is no tool call, the client is not using the server, so check that it is enabled. If the wrong page wins, the heading may not use the reader's words. People ask about rotating a key, and a page titled "Credential lifecycle" can lose to a nearby page that says "key" in its first line. The fix is an editing pass, described in Make your documentation AI-ready.
Search covers what the crawler can read. Pages behind a login are not part of a public crawl. Export them as files, or add a source MCP Studio is allowed to read, and make the server private if the material is internal. When the answer is code rather than prose, add the repository as a second source, as in Give an AI agent access to your GitHub repository.
Frequently asked questions
Can Claude or Cursor search my documentation site?
Yes, through an MCP server that holds a search tool over your pages. You build the server from your docs URL, add its address to Claude, Cursor, Windsurf, or Codex, and the agent calls the tool whenever a question needs your content.
Do I need to write code to add documentation search to an AI agent?
No. MCP Studio crawls your documentation, hosts the server, and lets you pick tools in a wizard. You copy one URL into the agent's MCP settings.
Why does my AI agent answer without using my docs?
The agent decides when to call a tool, and it may answer from memory if the server is not enabled or indexing has not finished. Check for a tool call beside the reply, and ask the agent to use your documentation if needed.
Do my docs need to use the same words as the question?
Not exactly. Passages are matched on meaning as well as wording, so a question about signing in can find a page about authentication. Headings written in the words readers use still help the right section rank first.
How many pages can an MCP server search?
A documentation site or website source is crawled up to 5,000 pages. If your site is larger, start the source at a specific section or connect the GitHub repository behind the docs instead.
Let an agent search your docs with MCP Studio
Add your documentation URL to MCP Studio, turn on Search Documentation, and deploy. The wizard takes about a minute and needs no code. Then ask for the key rotation page and open the link it returns: let an agent search your docs.