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 runmint-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
Quick setup
Mintlify generates your MCP server athttps://your-docs-url/mcp when you deploy.
Connect AI tools:
Searching your generated API reference
The MCPsearch 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
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
Thedescription frontmatter field (auto-generated from your TSDoc @remarks) is searchable via MCP:
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 yourdocs.json:
Promote MCP in your README
Help users discover this feature:Test your MCP server
After deploying, verify search works:- Connect an AI tool to your MCP server
- Ask: “What classes are available in the API?”
- Ask: “Find the ITemplateData interface”
- 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.

