geminicli-mcp
geminicli-mcp
封装了无头 Gemini CLI 的无状态 MCP 服务器。
stdio 传输,每个客户端生成一个进程
两个工具:
gemini_prompt,gemini_prompt_with_context无会话,无
working_dir,无超时强制执行在服务器进程的
cwd中运行
安装
npm install
npm run build二进制文件作为 geminicli-mcp 公开(参见 package.json#bin)。
Related MCP server: gemini-cli-mcp
工具
gemini_prompt
字段 | 类型 | 必填 | 说明 |
prompt | string | 是 | 提示词文本 |
model | string | 否 | 例如 |
返回 CLI 的响应文本。
gemini_prompt_with_context
字段 | 类型 | 必填 | 说明 |
prompt | string | 是 | 提示词文本 |
context | string | 是 | 在 |
model | string | 否 | 例如 |
返回 CLI 的响应文本。
环境变量
GEMINI_CLI_BIN— 覆盖gemini二进制文件路径。子进程环境变量通过
NO_COLOR=1和TERM=dumb进行清理。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that wraps the Gemini CLI to provide tools for executing prompts, managing chat sessions, and accessing CLI extensions. It supports both local stdio and remote SSE transports for flexible integration with MCP clients.1
- AlicenseAqualityDmaintenanceA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command injection.2155MIT
- FlicenseAqualityDmaintenanceWraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.11
- Alicense-qualityDmaintenanceA Model Context Protocol server that wraps the Gemini CLI, enabling AI assistants to send prompts, research topics, analyze code, and summarize content using Gemini.11MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for generating rough-draft project plans from natural-language prompts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/trevoraspencer/geminicli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server