@danijeun/fanar-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@danijeun/fanar-mcp-serverTranslate 'good morning' to Arabic"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-serverOr use with npx:
npx @danijeun/fanar-mcp-serverEnvironment Variable
Set your Fanar API key:
export FANAR_API_KEY=your_api_key_hereUsage (CLI)
You can run the MCP server directly:
@danijeun/fanar-mcp-serverOr via npx:
npx @danijeun/fanar-mcp-serverUsage (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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danijeun/fanar-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server