M

Mahran MCP

by Khalid-Mahran · Khalid-Mahran/Mahran MCP

Enables clients to connect to Gemini, local Ollama models, terminal commands, and a restricted filesystem server through generated Codex and Claude Desktop configurations.

Unknown transport Glama Low confidence
Note

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
OLLAMA_URL No URL of the local Ollama server. Default: http://localhost:11434
GEMINI_MODEL No Gemini model to use. Change to an available model from gemini_list_models. Default: gemini-3.1-flash-lite
MAHRAN_MODEL No Default Ollama model for the local server. Default: qwen2.5:7b
GEMINI_API_KEY No User-supplied Gemini API key. If not set, the key is read from ~/.gemini_mcp/config.json.
MAHRAN_CODE_MODEL No Ollama model used for the code router lane. Defaults to the same value as MAHRAN_MODEL. Default: qwen2.5:7b
GEMINI_IMAGE_MODEL No Gemini image model to use. Requires an account/model that supports image generation. Default: gemini-3.1-flash-image
MAHRAN_CYBER_MODEL No Ollama model used for the cyber router lane. Defaults to the same value as MAHRAN_MODEL. Default: qwen2.5:7b
MAHRAN_PERSONA_FILE No Optional path to your own plain-text system prompt file.
MAHRAN_GENERAL_MODEL No Ollama model used for the general router lane. Defaults to the same value as MAHRAN_MODEL. Default: qwen2.5:7b

Similar servers