Everything doc2mcp does on the web, you can now do without leaving your terminal. Turn a docs site into a hosted MCP server, install it into your editor, and even chat with the docs right in your shell.
Install
npm i -g doc2mcp
If doc2mcp is not found after a global install, npm's global bin probably is not on your PATH. The post-install step prints the exact line to add, or you can just use npx doc2mcp <command>.
Log in (browser-based)
doc2mcp login
This prints a short code and a link. Open it, approve, and the CLI is authorized — no API keys to paste.
Open this link to authorize:
https://doc2mcp.site/cli/authorize?code=YAYTNQAK
✔ Authorized
Logged in as you@example.com
Turn docs into an MCP
Point it at any documentation URL:
doc2mcp https://docs.example.com
The CLI crawls and indexes the site, gives you a hosted MCP URL + token, and then asks where to install it:
? Install this MCP into your editor?
◯ Cursor
◯ VS Code
◯ Claude
◯ Windsurf
Pick your editors and it writes the config for you. No copy-pasting JSON.
Chat with your docs in the terminal
This is my favorite part. doc2mcp chat is a Claude Code-style REPL for your docs:
doc2mcp chat https://manus.im/docs/introduction/welcome
Paste a URL and it converts on the fly, offers to install into your editors, then drops you into a chat. Answers render as formatted terminal output — headings, bold, lists, fenced code blocks, and clean source links — instead of raw markdown:
╭ doc2mcp chat · manus ╮
│ Ask anything about these docs. Type /exit to quit.
› what is manus?
● doc2mcp
Manus is an agent-based AI platform...
• Agent-Based: has a browser and a file system
• Action-oriented: builds files and sites end to end
Sources
• Integrate Manus with Your Tools
https://manus.im/docs/integrations
You can also ask a one-shot question:
doc2mcp chat <project-id> -m "how do I authenticate?"
Command cheatsheet
| Command | What it does |
|---|---|
doc2mcp login |
Browser-based auth |
doc2mcp whoami |
Show the logged-in account |
doc2mcp <url> |
Convert docs into a hosted MCP |
doc2mcp list |
List your MCP projects |
doc2mcp install <id> |
Install an existing MCP into editors |
| `doc2mcp chat [url\ | id]` |
Why it matters
The MCPs you create are hosted and token-based, so your editor reuses them instead of re-scraping — that means faster answers and lower infra cost. Build once, use everywhere.
Get started:
npm i -g doc2mcp && doc2mcp login
Learn more at doc2mcp.site/cli.

Top comments (0)