Skip to main content
Glama
Cicatriiz

Civitai MCP Server

get_creators

Search and browse Civitai's model creators by username, with options to filter results by page number and limit output to streamline discovery of AI model creators.

Instructions

Browse and search for model creators on Civitai

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of creators to return (0-200, default 20)
pageNoPage number for pagination
queryNoSearch query to filter creators by username

Implementation Reference

  • The primary handler function for the 'get_creators' MCP tool. It invokes the CivitaiClient's getCreators method, formats the response data into a readable text summary, and returns it in the MCP content format.
    private async getCreators(args: any) { const response = await this.client.getCreators(args); return { content: [ { type: 'text', text: `Found ${response.metadata.totalItems || response.items.length} creators:\\n\\n${response.items.map(creator => `**${creator.username}**\\n` + `Models: ${creator.modelCount || 0}\\n` + (creator.link ? `Profile: ${creator.link}\\n` : '') + '\\n' ).join('---\\n')}\\nPage ${response.metadata.currentPage || 1} of ${response.metadata.totalPages || 1}`, }, ], }; }
  • src/index.ts:194-205 (registration)
    Registration of the 'get_creators' tool in the MCP server's tool list, including name, description, and input schema definition.
    { name: 'get_creators', description: 'Browse and search for model creators on Civitai', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Number of creators to return (0-200, default 20)', minimum: 0, maximum: 200 }, page: { type: 'number', description: 'Page number for pagination', minimum: 1 }, query: { type: 'string', description: 'Search query to filter creators by username' }, }, }, },
  • Zod schema for validating the CreatorsResponse from the Civitai API, used in the client implementation.
    export const CreatorsResponseSchema = z.object({ items: z.array(CreatorSchema), metadata: MetadataSchema, });
  • Core API client method that performs the HTTP request to Civitai's /creators endpoint, builds the URL with parameters, and validates the response using the schema.
    async getCreators(params: CreatorsParams = {}): Promise<CreatorsResponse> { const url = this.buildUrl('/creators', params); return this.makeRequest<CreatorsResponse>(url, CreatorsResponseSchema); }
  • TypeScript interface defining the input parameters for the getCreators method, matching the tool's inputSchema.
    export interface CreatorsParams { limit?: number; page?: number; query?: string; }
  • Zod schema for individual Creator objects returned in the response.
    export const CreatorSchema = z.object({ username: z.string(), image: z.string().nullable().optional(), modelCount: z.number().optional(), link: z.string().optional(), });

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/Cicatriiz/civitai-mcp-server'

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