Skip to main content
Glama

geminicli-mcp

封装了无头 Gemini CLI 的无状态 MCP 服务器。

  • stdio 传输,每个客户端生成一个进程

  • 两个工具:gemini_promptgemini_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

例如 gemini-2.5-pro

返回 CLI 的响应文本。

gemini_prompt_with_context

字段

类型

必填

说明

prompt

string

提示词文本

context

string

<context> 内部预置到提示词之前

model

string

例如 gemini-2.5-pro

返回 CLI 的响应文本。

环境变量

  • GEMINI_CLI_BIN — 覆盖 gemini 二进制文件路径。

  • 子进程环境变量通过 NO_COLOR=1TERM=dumb 进行清理。

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    An 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
  • A
    license
    A
    quality
    D
    maintenance
    A 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.
    2
    15
    5
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Wraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.
    1
    1

View all related MCP servers

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.

View all MCP Connectors

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/trevoraspencer/geminicli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server