Gemini Thinking Server
模型上下文协议 - Gemini Thinking Server
这是模型上下文协议 (MCP) 的实现,它与 Google 的 Gemini API 集成,无需代码生成即可提供分析思维能力。
概述
Gemini Thinking Server 是一款专用的 MCP 服务器,它利用 Google 的 Gemini 模型来提供顺序思考和问题解决能力。它能够实现以下功能:
将复杂问题分解成几个步骤
规划和设计留有修改空间
可能需要修正路线的分析
最初可能不清楚全部范围的问题
Related MCP server: gpal
特征
双子座思维:利用双子座的分析能力来产生深思熟虑的回应
元评论:提供对推理过程的见解
置信水平:表明 Gemini 对其分析的信心程度
替代路径:建议解决问题的不同方法
分支思维:允许探索不同的思维路径
修改能力:支持修改以前的想法
会话持久性:保存并恢复分析会话
安装
# Clone the repository
git clone <repository-url>
# Install dependencies
npm install
# Build the project
npm run build用法
环境设置
在运行服务器之前,您需要设置您的 Gemini API 密钥:
export GEMINI_API_KEY=your_api_key_here运行服务器
node dist/gemini-index.js工具参数
geminithinking工具接受以下参数:
query(必需):要分析的问题context(可选):附加上下文信息approach(可选):建议解决问题的方法previousThoughts(可选):上下文中先前想法的数组thought(可选):您当前的思考步骤(如果为空,将由 Gemini 生成)nextThoughtNeeded(必需):是否需要另一个思考步骤thoughtNumber(必填):当前的想法数totalThoughts(必填):估计需要的想法总数isRevision(可选):这是否改变了以前的想法revisesThought(可选):正在重新考虑哪些想法branchFromThought(可选):分支点思想编号branchId(可选):分支标识符needsMoreThoughts(可选):如果需要更多想法
会话管理
该工具还支持会话管理命令:
sessionCommand:管理会话的命令('save'、'load'、'getState')sessionPath:保存或加载会话文件的路径(“保存”和“加载”命令所需)
示例:保存会话
{
"sessionCommand": "save",
"sessionPath": "/path/to/save/session.json",
"query": "dummy",
"thoughtNumber": 1,
"totalThoughts": 1,
"nextThoughtNeeded": false
}示例:加载会话
{
"sessionCommand": "load",
"sessionPath": "/path/to/load/session.json",
"query": "dummy",
"thoughtNumber": 1,
"totalThoughts": 1,
"nextThoughtNeeded": false
}示例:获取会话状态
{
"sessionCommand": "getState",
"query": "dummy",
"thoughtNumber": 1,
"totalThoughts": 1,
"nextThoughtNeeded": false
}例子
以下是如何使用该工具的示例:
{
"query": "How might we design a sustainable urban transportation system?",
"context": "The city has 500,000 residents and currently relies heavily on personal vehicles.",
"approach": "Consider environmental, economic, and social factors.",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}响应格式
服务器响应:
{
"thought": "The generated thought from Gemini",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true,
"branches": [],
"thoughtHistoryLength": 1,
"metaComments": "Meta-commentary about the reasoning",
"confidenceLevel": 0.85,
"alternativePaths": ["Alternative approach 1", "Alternative approach 2"]
}示例客户端
提供了几个示例客户端来演示不同的用例:
sample-client.js:基本客户端示例example-usage.js:具体使用示例codebase-analysis-example.js:代码库分析示例session-example.js:演示会话持久性的示例advanced-filtering-example.js:演示高级语义过滤的示例
运行会话示例:
node dist/session-example.js运行高级过滤示例:
node dist/advanced-filtering-example.js执照
麻省理工学院
Available Tools
1 toolgeminithinkingA
A detailed tool for dynamic and reflective problem-solving through Gemini AI. This tool helps analyze problems through a flexible thinking process powered by Google's Gemini model. Each thought can build on, question, or revise previous insights as understanding deepens.
When to use this tool:
Breaking down complex problems into steps
Planning and design with room for revision
Analysis that might need course correction
Problems where the full scope might not be clear initially
Problems that require a multi-step solution
Tasks that need to maintain context over multiple steps
Situations where irrelevant information needs to be filtered out
Key features:
Leverages Gemini AI for deep analytical thinking
Provides meta-commentary on the reasoning process
Indicates confidence levels for generated thoughts
Suggests alternative approaches when relevant
You can adjust total_thoughts up or down as you progress
You can question or revise previous thoughts
You can add more thoughts even after reaching what seemed like the end
You can express uncertainty and explore alternative approaches
Not every thought needs to build linearly - you can branch or backtrack
Session persistence: save and resume your analysis sessions
Parameters explained:
query: The question or problem to be analyzed
context: Additional context information (e.g., code snippets, background)
approach: Suggested approach to the problem (optional)
previousThoughts: Array of previous thoughts for context
thought: The current thinking step (if empty, will be generated by Gemini)
next_thought_needed: True if you need more thinking, even if at what seemed like the end
thought_number: Current number in sequence (can go beyond initial total if needed)
total_thoughts: Current estimate of thoughts needed (can be adjusted up/down)
is_revision: A boolean indicating if this thought revises previous thinking
revises_thought: If is_revision is true, which thought number is being reconsidered
branch_from_thought: If branching, which thought number is the branching point
branch_id: Identifier for the current branch (if any)
needs_more_thoughts: If reaching end but realizing more thoughts needed
metaComments: Meta-commentary from Gemini about its reasoning process
confidenceLevel: Gemini's confidence in the generated thought (0-1)
alternativePaths: Alternative approaches suggested by Gemini
Session commands:
sessionCommand: Command to manage sessions ('save', 'load', 'getState')
sessionPath: Path to save or load the session file (required for 'save' and 'load' commands)
You should:
Start with a clear query and any relevant context
Let Gemini generate thoughts by not providing the 'thought' parameter
Review the generated thoughts and meta-commentary
Feel free to revise or branch thoughts as needed
Consider alternative paths suggested by Gemini
Only set next_thought_needed to false when truly done
Use session commands to save your progress and resume later
Inputs: query (required), thoughtNumber (required), totalThoughts (required), nextThoughtNeeded (required), +14 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no risk of confusion or overlap with other tools.
With a single tool, naming consistency is inherently perfect; the name 'geminithinking' clearly describes its purpose.
The server has only one tool, which feels thin for a domain that could benefit from separate tools for sessions, branching, or analysis management. However, the single tool is feature-rich.
The tool covers all expected functionalities for a deep thinking assistant: querying, context, revisions, branching, session persistence, and meta-commentary. No obvious gaps.
Maintenance
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseAqualityDmaintenanceA MCP server that implements sequential thinking protocols, provides structured problem-solving methods, decomposes complex problems into manageable steps, and supports iterative optimization and alternative reasoning paths.12Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that gives your IDE or agent access to Google Gemini with autonomous codebase exploration, enabling deep code analysis, architectural reviews, and bug hunting.2010MIT
- AlicenseAqualityCmaintenanceAn advanced MCP server that provides an agentic interface to Google's Gemini 3.1 models via Vertex AI, combining real-time Google Search, URL analysis, and Python code execution to solve complex multi-step research and data tasks.1MIT
- AlicenseAqualityDmaintenanceGemini-powered MCP server for automated code review, analysis, and documentation.13MIT