fanar-mcp-server

danijeun/fanar-mcp-server

3.2

If you are the rightful owner of fanar-mcp-server 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.

Fanar MCP Tools is a Model Context Protocol server designed for Fanar API tools, including Islamic RAG, image generation, and translation. It is available as an npm package and can be used as a CLI tool or MCP server.

Tools
3
Resources
0
Prompts
0

Fanar MCP Tools

A Model Context Protocol (MCP) server for Fanar API tools: Islamic RAG, image generation, and translation. Publishable as an npm package and usable as a CLI tool or MCP server.

Installation

npm install -g @danijeun/fanar-mcp-server

Or use with npx:

npx @danijeun/fanar-mcp-server

Environment Variable

Set your Fanar API key:

export FANAR_API_KEY=your_api_key_here

Usage (CLI)

You can run the MCP server directly:

@danijeun/fanar-mcp-server

Or via npx:

npx @danijeun/fanar-mcp-server

Usage (MCP Client)

Configure your MCP client to use this server. Example config:

{
  "mcpServers": {
    "fanar_mcp": {
      "command": "npx",
      "args": ["@danijeun/fanar-mcp-server"],
      "env": {
        "FANAR_API_KEY": "your api key here"
      }
    }
  }
}

Tools

fanar_rag

  • Input: { messages: [{ role: string, content: string }], model?: string }
  • Output: { content: [{ type: "text", text: string }], references?: any[] }

fanar_image_gen

  • Input: { prompt: string }
  • Output: { content: [{ type: "image", image: string }] } (base64)

fanar_translate

  • Input: { text: string, langpair: string, preprocessing?: string }
  • Output: { content: [{ type: "text", text: string }] }

License

None