Skip to main content
Glama
syucream

Lightdash MCP Server

by syucream

lightdash_get_catalog

Retrieve the catalog for a Lightdash project using its UUID to access analytics data, including spaces, charts, dashboards, and metrics.

Instructions

Get catalog for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectUuidYesThe UUID of the project. You can obtain it from the project list.

Implementation Reference

  • Handler for 'lightdash_get_catalog' tool: validates input with GetCatalogRequestSchema, calls Lightdash API GET /api/v1/projects/{projectUuid}/dataCatalog, returns JSON response or throws error.
    case 'lightdash_get_catalog': { const args = GetCatalogRequestSchema.parse(request.params.arguments); const { data, error } = await lightdashClient.GET( '/api/v1/projects/{projectUuid}/dataCatalog', { params: { path: { projectUuid: args.projectUuid, }, }, } ); if (error) { throw new Error( `Lightdash API error: ${error.error.name}, ${ error.error.message ?? 'no message' }` ); } return { content: [ { type: 'text', text: JSON.stringify(data.results, null, 2), }, ], }; }
  • Zod schema defining input for lightdash_get_catalog: requires projectUuid (UUID string).
    export const GetCatalogRequestSchema = z.object({ projectUuid: z .string() .uuid() .describe( 'The UUID of the project. You can obtain it from the project list.' ), });
  • src/mcp.ts:79-83 (registration)
    Registration of 'lightdash_get_catalog' tool in the ListTools response, specifying name, description, and input schema.
    { name: 'lightdash_get_catalog', description: 'Get catalog for a project', inputSchema: zodToJsonSchema(GetCatalogRequestSchema), },

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/syucream/lightdash-mcp-server'

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