Skip to main content
Use Cursor to help write and maintain your documentation with mint-tsdocs. This guide shows how to configure Cursor to leverage your generated API reference and maintain consistency across your docs.

Prerequisites

  • Cursor editor installed
  • Access to your documentation repository
  • Your documentation site deployed (for MCP integration)

Why use Cursor with mint-tsdocs?

Connecting Cursor to your documentation helps you:
  • Quick reference: Access your 400+ generated API pages directly in the editor
  • Consistent writing: Get suggestions based on your existing documentation patterns
  • Smart linking: Auto-complete references to API classes, interfaces, and types
  • Template editing: Get context-aware help when customizing Liquid templates

Connect to your documentation (MCP)

Mintlify automatically generates an MCP server at https://your-docs-url/mcp that Cursor can use to search your documentation. This is the easiest way to give Cursor access to your entire API reference.
If you’ve enabled the contextual menu in your docs:
  1. Visit any page in your deployed documentation
  2. Click the AI menu (usually in the top-right)
  3. Select “Install MCP in Cursor”
  4. Follow the prompts to complete installation

Option 2: Manual setup

Add your MCP server to Cursor’s settings. Create or edit your MCP config file: On macOS/Linux: ~/.cursor/mcp.json On Windows: %APPDATA%\Cursor\mcp.json
Replace your-docs-url with your actual documentation URL.
After adding the MCP server, restart Cursor to activate the connection.

Verify the connection

Open Cursor and ask in the chat:
Cursor should search your MCP server and return results from your API reference.

Project rules

Create project rules that all team members can use. In your documentation repository root:
Create .cursor/rules.md:

Using your generated API reference

Once you’ve generated your API documentation with mint-tsdocs generate, Cursor can help you navigate and use your hundreds of reference pages:

Quick lookups while editing

When writing guides or tutorials, ask Cursor:

Auto-complete API references

When typing links in MDX files, Cursor can suggest paths from your API reference:

Refactor documentation

Select text and use Cursor’s composer to refactor:
Enable Cursor’s “Index codebase” feature along with MCP for the best experience. This gives Cursor both local code context and documentation context.

Common workflows

Learning mint-tsdocs

When adopting mint-tsdocs in Cursor:

Writing new documentation

When creating guides:

Template customization

When editing Liquid templates:

Consistency checks