clarifai-mcp-server-local

clarifai-mcp-server-local

3.3

If you are the rightful owner of clarifai-mcp-server-local and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Clarifai MCP Server is an unofficial project designed to facilitate interaction between MCP clients and the Clarifai API, enabling local execution of image generation and inference tasks.

The Clarifai MCP Server is a hackday project that provides a Model Context Protocol (MCP) server acting as a bridge to the Clarifai API. It is designed to run locally on a user's machine, allowing MCP clients, such as IDE extensions, to interact with Clarifai for tasks like image generation and inference. This server enables these interactions using standard MCP requests, ensuring that large binary results do not overload the LLM context. The server is typically configured to run automatically by the MCP client framework, such as through settings in VS Code. It requires Go (version 1.23 or later) for building the binary. The server listens for JSON-RPC 2.0 requests via standard input and sends responses via standard output, allowing seamless integration with MCP client frameworks. It supports various tools and resources, providing a robust interface for managing and utilizing Clarifai's capabilities.

Features

  • Local execution of image generation and inference tasks using Clarifai API.
  • Seamless integration with MCP clients through JSON-RPC 2.0 over stdio.
  • Configurable via command-line arguments, including Clarifai PAT and output paths.
  • Supports both tool and resource requests, enabling comprehensive interaction with Clarifai.
  • Provides read-only access to various Clarifai entities as MCP resources.

Tools

  1. upload_file

    Uploads a local file to Clarifai as an input.

  2. generate_image

    Generates an image based on a text prompt using a specified or default Clarifai text-to-image model.

  3. clarifai_image_by_path

    Performs inference on a local image file using a specified or default Clarifai model.

  4. clarifai_image_by_url

    Performs inference on an image URL using a specified or default Clarifai model.

  5. search_by_text

    Searches inputs based on a text query using Clarifai's PostInputSearches.