clarifai-mcp-server-local

clarifai-mcp-server-local

2

The project is an unofficial Model Context Protocol server that connects to the Clarifai API, providing local machine facilitation of tasks like image generation using standard MCP requests. It offers a range of features for handling input, output, and data interaction with Clarifai models.

Clarifai MCP Server (Unofficial)

This project is a Model Context Protocol (MCP) server functioning as a bridge to the Clarifai API, intended to run locally on the user's machine. It supports interactions like image generation and inference using Clarifai without overloading context. Key MCP capabilities include tools for uploading files, generating images, and performing inferences. The server also offers read-only access to Clarifai resources like models and datasets, with templates available for listing and searching resources.

Features

  • upload_file: Uploads a local file to Clarifai.
  • generate_image: Creates an image based on a text prompt.
  • clarifai_image_by_path: Performs inference on a local image file.
  • clarifai_image_by_url: Performs inference on an image by URL.
  • search_by_text: Searches inputs using a text query.
  • search_by_filepath: Searches for similar local image files.
  • search_by_url: Searches for similar images by URL.

Architecture Overview

The server listens for JSON-RPC requests over standard input/output, interacting with Clarifai's gRPC API. Its main components include command handlers, tools, resources, and utilities packaged for seamless operation.