Skip to main content
Mintlify automatically generates an MCP server for your documentation. This guide focuses on how to leverage MCP when you have hundreds of generated API reference pages from mint-tsdocs.For general MCP setup and features, see Mintlify’s MCP documentation.

Why MCP matters for mint-tsdocs

When you run mint-tsdocs generate, you create 400+ API reference pages. MCP lets AI tools search these pages efficiently, making your API more discoverable for:
  • New users: “What caching options are available?” → AI finds CacheManager, TypeAnalysisCache, ApiResolutionCache
  • Template developers: “What properties does ITemplateData have?” → AI shows the full interface
  • Troubleshooters: “How do I configure custom templates?” → AI finds relevant config and classes
Without MCP, users would need to manually browse hundreds of pages or use in-page search.

Quick setup

Mintlify generates your MCP server at https://your-docs-url/mcp when you deploy. Connect AI tools:
See Claude Code, Cursor, or Mintlify’s MCP docs for detailed setup.

Searching your generated API reference

The MCP search tool is most useful for navigating your large API surface. Here are effective search patterns for mint-tsdocs projects:

By API item type

By functionality

By specific class/interface

Use specific TypeScript terminology: “interface”, “class”, “type”, “enum”. This helps the AI find the exact API items in your reference.

Optimizing discoverability

Write descriptive page titles

mint-tsdocs auto-generates titles, but you can improve them in templates if needed. Good titles help MCP search: CacheManager - Clear, matches the class name ✅ ITemplateData - Follows TypeScript interface naming ✅ MarkdownDocumenter.generateFiles() - Shows hierarchy

Add context in descriptions

The description frontmatter field (auto-generated from your TSDoc @remarks) is searchable via MCP:
This generates frontmatter that MCP can search:
To improve MCP search results, enhance your TSDoc @remarks and @summary tags in source code. mint-tsdocs uses these to generate page descriptions.

Common workflows

Learning your API

When onboarding new contributors:

Finding the right class

When implementing features:

Linking documentation

When writing guides:

Recommendations for mint-tsdocs projects

Enable contextual menu MCP options

Add to your docs.json:
This lets users install your MCP server with one click. See Contextual Menu for details.

Promote MCP in your README

Help users discover this feature:

Test your MCP server

After deploying, verify search works:
  1. Connect an AI tool to your MCP server
  2. Ask: “What classes are available in the API?”
  3. Ask: “Find the ITemplateData interface”
  4. Check that results match your generated reference pages

Troubleshooting

Search returns no results: Wait a few minutes after deployment for indexing. Verify your docs are deployed and accessible. Wrong pages returned: Improve your TSDoc comments in source code. More descriptive @remarks = better MCP search results. Multiple projects: Use descriptive names when adding MCP servers: project-a-docs, project-b-docs, not generic names.

Learn more

Mintlify MCP Docs

Full MCP features and configuration

Claude Code Setup

Connect Claude Code to your docs

Cursor Setup

Configure Cursor MCP integration

Contextual Menu

Enable one-click MCP setup