dochost-mcp

Publish Markdown or HTML to a shareable link from your AI assistant. OAuth, no API keys.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
75%
Calidad de los nombres
100%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~2,607Tokens (definiciones de herramientas)
~2.5 KBTamaño de respuesta típico
Impacto significativo en la atención (2.04% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "dochost-mcp": {
      "url": "https://dochost.io/api/mcp"
    }
  }
}

Puntos de conexión remotos

https://dochost.io/api/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (8)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟡publish(body, format, public, noBranding, customSlug, ...)

Publish Markdown or HTML as a hosted dochost page and get a shareable URL. Respects your plan: link lifetime, password protection, custom slug, and branding all follow your account entitlements. Paid plans publish without dochost branding by default — pass noBranding: false to keep the mark. When the account cannot have an option you asked for, the publish still succeeds and the result carries ignoredOptions + ignoredNote — relay that instead of reporting plain success. The link is issued on the account's primary host (a custom domain or subdomain when one is set in Settings › Domains, otherwise dochost.co/d); get_account reports which.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "body": {
      "type": "string",
      "minLength": 1
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "public": {
      "type": "boolean"
    },
    "noBranding": {
      "type": "boolean"
    },
    "customSlug": {
      "type": "string"
    },
    "password": {
      "type": "string"
    }
  },
  "required": [
    "body"
  ],
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The shareable page URL, on the account's primary host (custom domain, subdomain, or dochost.co/d). Relay it verbatim."
    },
    "slug": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO timestamp, or null when the link is permanent."
    },
    "permanent": {
      "type": "boolean"
    },
    "note": {
      "type": "string",
      "description": "Free-tier only: expiry warning + upgrade link. Relay this to the user."
    },
    "iterateHint": {
      "type": "string",
      "description": "How to revise this page later. Follow it instead of publishing a second time."
    },
    "ignoredOptions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "noBranding",
          "password",
          "customSlug",
          "searchable"
        ]
      },
      "description": "Paid options this account does not have, which were dropped. Present only when non-empty — the publish still succeeded, but NOT as asked."
    },
    "ignoredNote": {
      "type": "string",
      "description": "Plain-language consequence of ignoredOptions. Relay it instead of reporting plain success."
    }
  },
  "required": [
    "url",
    "slug",
    "format",
    "permanent"
  ],
  "additionalProperties": false
}
🟢list_my_pages(limit, offset)

List the pages you have published to dochost, newest first. Paginated; returns compact records (no page bodies).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "offset": {
      "type": "integer",
      "minimum": 0
    }
  },
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "pages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "markdown",
              "html"
            ]
          },
          "status": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          },
          "likes": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "slug",
          "url",
          "format",
          "status"
        ]
      }
    },
    "total": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "pages",
    "total",
    "limit",
    "offset",
    "hasMore"
  ]
}
🟢get_account

Get your plan, page-quota usage, entitlement flags (size cap, custom slug, password, branding, subdomain, custom domain), and the primary host new links publish on. Call before publishing so you know your limits up front. The primary host is chosen in the dashboard (manageDomainsUrl), not through this API.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pro",
        "max"
      ]
    },
    "pagesUsed": {
      "type": "integer"
    },
    "pageQuota": {
      "type": [
        "integer",
        "null"
      ]
    },
    "pagesRemaining": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sizeCapMb": {
      "type": "integer"
    },
    "permanentLinks": {
      "type": "boolean"
    },
    "customSlug": {
      "type": "boolean"
    },
    "password": {
      "type": "boolean"
    },
    "noBranding": {
      "type": "boolean"
    },
    "customSubdomain": {
      "type": "boolean",
      "description": "Whether this plan may claim a {name}.dochost.co subdomain (set it at manageDomainsUrl)."
    },
    "customDomain": {
      "type": "boolean",
      "description": "Whether this plan may point a hostname the user owns at their pages (set it at manageDomainsUrl)."
    },
    "analytics": {
      "type": "string",
      "enum": [
        "none",
        "totals",
        "full"
      ]
    },
    "primaryHost": {
      "type": "string",
      "description": "Host new links publish on: a custom domain, `{sub}.dochost.co`, or `dochost.co/d`."
    },
    "manageDomainsUrl": {
      "type": "string",
      "description": "Dashboard page where the user adds domains and picks the primary one. Send them here to change it."
    }
  },
  "required": [
    "ok",
    "plan"
  ]
}
🟢get_page(slug)

Get one of your pages by slug: title, format, status, view/like counts, expiry, whether it is password-protected, and its current visibility / indexing / branding state. Never returns the page body or the password — call get_page_content when you need the source itself, and set_page_options to change any of the settings it reports.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "status": {
      "type": "string"
    },
    "views": {
      "type": "integer"
    },
    "likes": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasPassword": {
      "type": "boolean"
    },
    "permanent": {
      "type": "boolean"
    },
    "public": {
      "type": "boolean"
    },
    "searchable": {
      "type": "boolean"
    },
    "brandingHidden": {
      "type": "boolean",
      "description": "Whether the RENDERED page hides the dochost mark, resolved from the live plan — not a per-page setting. Read-only."
    }
  },
  "required": [
    "ok",
    "slug",
    "url"
  ]
}
🟢get_page_content(slug)

Read back the CURRENT Markdown or HTML of one of your pages. Call this before update_page whenever you did not write the live content yourself in this same conversation — update_page replaces the body wholesale, so editing from memory silently discards anything you cannot see, including edits the user made in the browser. Returns `version` and `sha256`; pass them to update_page as ifVersion / ifSha so the write is refused instead of overwriting a change you did not read. Expired pages are readable, and updating one republishes it on the same URL.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "status": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "description": "Pass to update_page as ifVersion to guard the write."
    },
    "sha256": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass to update_page as ifSha to guard the write."
    },
    "bytes": {
      "type": "integer"
    },
    "body": {
      "type": "string",
      "description": "The raw Markdown or HTML exactly as published."
    },
    "editable": {
      "type": "boolean"
    },
    "note": {
      "type": "string",
      "description": "Present when the page is expired or under review. Relay it before editing."
    }
  },
  "required": [
    "slug",
    "url",
    "format",
    "status",
    "version",
    "bytes",
    "body",
    "editable"
  ],
  "additionalProperties": false
}
🔴update_page(slug, body, format, title, ifVersion, ...)

Replace the content of one of your pages in place. The URL, view/like counts, and expiry stay the same; only the body, format, and title change. Resending identical content is a no-op. Prefer this over publishing again whenever the user is revising something you already published for them — a second publish creates a second link and strands the one they already shared. This replaces the WHOLE body, so unless you wrote the live content yourself in this conversation, call get_page_content first and pass its version/sha256 back as ifVersion/ifSha — the write is then refused with the current version instead of overwriting an edit you never saw.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "body": {
      "type": "string",
      "minLength": 1
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "ifVersion": {
      "type": "integer",
      "minimum": 1,
      "description": "Write only if the page is still at this version (from get_page_content). Omit and the write always wins."
    },
    "ifSha": {
      "type": "string",
      "description": "Write only if the live body still hashes to this (from get_page_content)."
    }
  },
  "required": [
    "slug",
    "body"
  ],
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "version": {
      "type": "integer"
    }
  },
  "required": [
    "ok",
    "slug"
  ]
}
🟡set_page_options(slug, public, searchable, password, removePassword)

Change a published page's visibility, search-engine indexing or password WITHOUT republishing it — the URL, view count and content all stay the same. Use this instead of deleting and publishing again, which changes the link the user already shared. Send only the fields you want to change. Turning a paid capability off never needs an entitlement; turning one on is checked against the current plan. A password always forces the page private, so asking for both `public: true` and a password is refused rather than silently resolved. dochost branding is NOT settable here: it is resolved from the account's live plan at render time, so there is nothing per-page to flip — read `brandingHidden` from get_page for the rendered answer.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "public": {
      "type": "boolean",
      "description": "Discoverable on Explore. Cannot be true while a password is set."
    },
    "searchable": {
      "type": "boolean",
      "description": "Opt in to search-engine indexing. Turning it on requires a permanent page."
    },
    "password": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Set or replace the page password (paid plans)."
    },
    "removePassword": {
      "type": "boolean",
      "description": "Clear the password. Always allowed, on any plan."
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "public": {
      "type": "boolean"
    },
    "searchable": {
      "type": "boolean"
    },
    "hasPassword": {
      "type": "boolean"
    },
    "changed": {
      "type": "boolean",
      "description": "False when the page already had exactly these settings."
    }
  },
  "required": [
    "ok",
    "slug"
  ]
}
🔴delete_page(slug)

Permanently delete one of your pages by slug. The link stops working immediately and the slug is freed. Deleting an already-deleted page is a safe no-op.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "alreadyDeleted": {
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "slug"
  ]
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada8 herramientas