Connect an AI tool with MCP
Advanced · Beta. MCP lets an AI client such as Cursor use DocuGhost tools to find and read authorized documents. In GitHub-connected spaces, an explicitly enabled token can also save drafts for human review. Native Spaces are read-only through MCP.
Connect your client
Select the space or repository in the editor, then open Settings → Integrations → Connect an AI tool. Confirm your identity if requested.
Enter a Connection name. For GitHub, leave Allow creating and updating drafts off unless the client needs writes. Select Create repository token, or Create read-only space token for a Native Space.
Copy the token once and keep it private. Download the standalone connector from this screen; install Node.js 22 or later on the computer running the client.
In your client's MCP configuration, add the entry below with the connector's absolute path and your token. Restart or reload the client's MCP connection.
Ask the client to list available spaces and documents, then read a known permitted document before allowing edits.
{
"mcpServers": {
"docughost": {
"command": "node",
"args": ["/absolute/path/docughost-mcp.mjs"],
"env": {
"DOCUGHOST_URL": "https://app.docughost.work",
"DOCUGHOST_MCP_TOKEN": "YOUR_PRIVATE_TOKEN"
}
}
}
}Use private user-level client configuration, not a shared or committed repository file. For self-hosted evaluation, use that installation's HTTPS URL. This is a locally launched connector; do not paste the website URL into a remote HTTP MCP server field. Client settings vary; follow your client's MCP configuration instructions.
What the tools can do
| Tool | Behavior |
|---|---|
list_repositories | List spaces/repositories allowed by this token and your current access. |
list_documents | List permitted Markdown documents and drafts. |
read_document | Read a document; may create an unchanged server draft as part of opening it. |
create_draft | GitHub only, with draft-write permission and current write access. Creates a draft, not a commit. |
update_draft | GitHub only, with draft-write permission and the exact current draft revision. |
There are no tools to commit, push, merge, open pull requests, browse arbitrary URLs or analyze arbitrary repository source code. Review saved drafts in DocuGhost and use Review changes yourself. Native Space write attempts are rejected, even with a write-capable token.
Permissions and revocation
Tokens are scoped to the selected connection and inherit your current document/folder permissions. The external client may send retrieved documents to its own AI provider: choose that client and its privacy settings accordingly. Ask DocuGhost's separate AI source grants do not control MCP document reads. A read-only token prevents content edits but still authorizes disclosure of permitted documents to the client.
Tokens expire after 30 days and are shown only once. Return to Connect an AI tool → Revoke to end access. Account disablement, session revocation and permission changes also restrict subsequent calls. Previously retrieved content cannot be recalled. Never give the client your GitHub token; DocuGhost keeps repository credentials server-side.
Connection problems
Check Node.js, the connector's absolute path, the installation URL and whether the token expired or was revoked. Do not put a token in a URL or paste it into support tickets. If no documents appear, check the selected connection and folder permissions. A stale revision requires rereading and reconciling the document, not forcing a write. Read-only accounts cannot gain write access by selecting the token checkbox.
Protocol and permission tests are automated; acceptance in every external client or customer installation is not established. MCP remains beta, and self-hosted commercial availability is separately gated.
