Skip to main content
Glama
Leanware-io

ClickUp MCP Integration

by Leanware-io

clickup_get_doc_pages

Retrieve pages from a ClickUp document by specifying its ID to access content for analysis or integration purposes.

Instructions

Get pages from a ClickUp doc

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYesClickUp doc ID

Implementation Reference

  • Tool handler function that invokes docsService.getDocPages(input.doc_id) and formats the response as MCP content.
    handler: async (input) => { const response = await docsService.getDocPages(input.doc_id); return { content: [{ type: "text", text: JSON.stringify(response) }], }; },
  • Input schema for the tool: requires 'doc_id' as string.
    inputSchema: { doc_id: z.string().describe("ClickUp doc ID"), },
  • src/index.ts:89-91 (registration)
    Registers the clickup_get_doc_pages tool (along with others) to the McpServer instance.
    tools.forEach((tool) => { server.tool(tool.name, tool.description, tool.inputSchema, tool.handler); });
  • Core implementation in DocsService: fetches doc pages via ClickUp API request to the pageListing endpoint.
    async getDocPages(docId: string): Promise<{ pages: ClickUpDocPage[] }> { return this.request<{ pages: ClickUpDocPage[] }>( `/${this.workspaceId}/docs/${docId}/pageListing` ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Leanware-io/clickup-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server