Skip to main content
Glama
@danijeun/fanar-mcp-server
by danijeun

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

Related MCP server: MCP AI Chat LangChain

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

Available Tools

3 tools
fanar_image_genD

Inputs: prompt (required).

fanar_ragD

Inputs: messages (required), model.

fanar_translateD

Inputs: text (required), langpair (required), preprocessing.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2/5.0

    Scored across 3 tools

    Disambiguation4/5

    Tool names suggest distinct functionalities (image generation, RAG, translation), but missing descriptions could cause minor confusion about exact purpose or scope.

    Naming Consistency5/5

    All tools follow a consistent 'fanar_verb_noun' pattern using snake_case, making the naming predictable and clean.

    Tool Count5/5

    With only three tools, the server is well-scoped for a focused set of AI capabilities, each tool serving a clear purpose.

    Completeness3/5

    Without descriptions, it's unclear if the three tools cover the intended domain fully; gaps may exist but are not obvious from names alone.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers