Overview
Use the admin MCP when you want an AI tool to edit your Mintlify documentation for you. The admin MCP gives trusted AI tools access to your docs on a Git branch, so the tool can read pages, make MDX edits, update navigation, and open a pull request for review. This guide focuses on content editing: creating pages, updating existing pages, and reviewing the final diff before publishing.The admin MCP has write access to your docs. Connect it only to trusted AI tools, keep each editing session focused, and review the pull request before merging.
When to use it
Use the admin MCP for docs content work such as:- Creating a new page from a prompt, issue, support ticket, or product note
- Updating an existing page after a feature change
- Rewriting unclear sections while preserving the page structure
- Finding and replacing outdated terminology across pages
- Adding examples, callouts, steps, tabs, or code blocks to MDX
- Moving pages or adding a new page to the sidebar navigation
Basic editing flow
Connect the admin MCP
Add
https://mcp.mintlify.com to an MCP-capable client such as Claude, Claude Code, Cursor, or Codex. Complete the OAuth login with a Mintlify account that has access to the deployment you want to edit.Check out a branch
Ask the AI tool to check out the deployment and create a branch for the change. Use a specific slug so the branch is easy to recognize.
Ask for a focused content change
Describe exactly what should change and where. Mention the page path when you know it, or ask the tool to search first when you do not.
Review the draft
Ask the tool to summarize the pages it changed and show the diff. Open the editor URL returned by
checkout to review the rendered docs in the Mintlify dashboard.Useful prompts
Create a new page
Update an existing page
Search before editing
Improve clarity without changing meaning
Add MDX components
How the tools map to docs edits
| Task | Admin MCP tools |
|---|---|
| Find the right page | search, list_nodes |
| Read page content | read |
| Make a targeted MDX edit | edit_page |
| Replace a full page draft | write_page |
| Create a new page and add it to navigation | create_node |
| Change page metadata such as title or description | update_node |
| Move a page in navigation | move_node |
| Review pending changes | diff, get_session_state |
| Open a pull request | save |
Best practices
Keep one branch per task
Keep one branch per task
Keep each session scoped to one docs change. A branch that updates one feature page or one terminology migration is easier to review than a branch with many unrelated edits.
Give source material
Give source material
Paste the product spec, changelog, issue, or support answer that the docs should reflect. The AI tool can write better documentation when it has the exact source of truth.
Name paths and constraints
Name paths and constraints
Include page paths, navigation placement, preferred components, and anything that should not change. For example: “Do not edit the API reference pages” or “Keep all examples in TypeScript.”
Ask for a diff summary
Ask for a diff summary
Before saving, ask the tool to summarize every changed page and explain why each change was made. Then review the rendered preview and the pull request diff.
Prefer reviewable edits
Prefer reviewable edits
Ask for concise, local changes when possible. Large rewrites should be split into multiple sessions so reviewers can verify each change with confidence.
Troubleshooting
The tool cannot find the page
Ask it to list navigation nodes or search for the page title. If your project has multiple deployments, confirm it checked out the correctsubdomain.
The wrong deployment is open
Ask the tool to calllist_deployments, then checkout the correct deployment. Each deployment keeps a separate session.
The edit changes too much
Ask the tool to discard the session or revert the specific page, then retry with narrower instructions. Include the exact section, heading, or string that should change.The pull request is not ready
Keep iterating on the same branch. Ask for follow-up edits, review the diff again, then save when the content is ready.Next steps
- Learn how to connect and manage the admin MCP
- Review MDX text formatting
- Explore Mintlify components
- Learn how to structure navigation