Skip to main content
Glama
syucream

Lightdash MCP Server

by syucream

lightdash_list_projects

Retrieve all projects from a Lightdash organization to manage analytics data access and organization structure.

Instructions

List all projects in the Lightdash organization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the lightdash_list_projects tool by calling the Lightdash API endpoint '/api/v1/org/projects' and returns the project list as JSON.
    case 'lightdash_list_projects': { const { data, error } = await lightdashClient.GET( '/api/v1/org/projects', {} ); 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), }, ], }; }
  • src/mcp.ts:49-53 (registration)
    Tool registration in the ListTools response, defining name, description, and input schema.
    { name: 'lightdash_list_projects', description: 'List all projects in the Lightdash organization', inputSchema: zodToJsonSchema(ListProjectsRequestSchema), },
  • Zod schema defining the input for lightdash_list_projects tool, which requires no parameters.
    export const ListProjectsRequestSchema = z.object({});

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