🌀 Clarifai MCP Server (unofficial)

by tot-ra

155 downloads
Not rated
GitHub

About

This unofficial MCP server acts as a local bridge between MCP clients (e.g., IDE extensions) and the Clarifai API. It enables image generation and inference using standard MCP requests, keeping heavy binary results out of the LLM context.

Details

Author
tot-ra
Downloads
155
Categories
Other

- Upload local files to Clarifai as inputs.
- Generate images from text prompts using Clarifai text-to-image models.
- Perform inference on local images or image URLs using Clarifai models.
- Expose Clarifai entities (inputs, models, datasets, etc.) as read-only MCP resources.
- Communicate over stdio using JSON‑RPC 2.0.

Clone the repository, build the binary with Go 1.23+, then configure your MCP client’s settings (e.g., cline_mcp_settings.json) to point to the binary and pass required flags: --pat, --output-path, --default-user-id, and --default-app-id. The server runs automatically via the client framework.

🌀 Clarifai MCP Server (unofficial)

This hackday project provides a Model Context Protocol (MCP) server that acts as a bridge to the Clarifai API and is meant to run on user's machine (so locally). It allows MCP clients (like IDE extensions) to interact with Clarifai, such as image generation and inference, using standard MCP requests without overloading LLM context with heavy binary results.

https://www.youtube.com/embed/aSuJxq1txm0

Configuring MCP server for seamless interaction

The server is typically run automatically by the MCP client framework (e.g., via settings in VS Code). The configuration usually involves specifying the path to the built binary and any required command-line arguments, such as the Clarifai PAT. You will need Go (version 1.23 or later)

cd ~
git clone git@github.com:tot-ra/clarifai-mcp-server-local.git
cd clarifai-mcp-server-local
go mod tidy

Build the Binary:
Use the go build command, targeting the main package within the cmd/server directory. Specify the output path and target architecture if needed (example for macOS ARM):
```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.