Gemini Thinking Server
The Gemini Thinking Server is a specialized tool for dynamic, reflective problem-solving using Google's Gemini AI. Key capabilities include:
Breaking down complex problems into manageable steps
Planning solutions with flexibility for revisions
Handling analyses that require course correction or have unclear initial scope
Providing meta-commentary on the reasoning process with confidence levels
Supporting non-linear thinking through branching and revising previous thoughts
Suggesting alternative problem-solving approaches
Maintaining context through session persistence (save, load, getState commands)
Filtering irrelevant information during analysis
Adjusting the estimated number of thoughts needed as work progresses
Leverages Google's Gemini API to provide analytical thinking capabilities for complex problem-solving without code generation, featuring meta-commentary, confidence levels, and alternative solution paths.
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., "@Gemini Thinking ServerHow can we reduce plastic waste in our city's parks?"
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.
Model Context Protocol - Gemini Thinking Server
This is an implementation of the Model Context Protocol (MCP) that integrates with Google's Gemini API to provide analytical thinking capabilities without code generation.
Overview
The Gemini Thinking Server is a specialized MCP server that leverages Google's Gemini model to provide sequential thinking and problem-solving capabilities. It allows for:
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
Related MCP server: gpal
Features
Gemini-Powered Thinking: Utilizes Gemini's analytical capabilities to generate thoughtful responses
Meta-Commentary: Provides insights into the reasoning process
Confidence Levels: Indicates how confident Gemini is in its analysis
Alternative Paths: Suggests different approaches to the problem
Branching Thoughts: Allows exploration of different thought paths
Revision Capability: Supports revising previous thoughts
Session Persistence: Save and resume analysis sessions
Installation
# Clone the repository
git clone <repository-url>
# Install dependencies
npm install
# Build the project
npm run buildUsage
Environment Setup
Before running the server, you need to set up your Gemini API key:
export GEMINI_API_KEY=your_api_key_hereRunning the Server
node dist/gemini-index.jsTool Parameters
The geminithinking tool accepts the following parameters:
query(required): The question or problem to analyzecontext(optional): Additional context informationapproach(optional): Suggested approach to the problempreviousThoughts(optional): Array of previous thoughts for contextthought(optional): Your current thinking step (if empty, will be generated by Gemini)nextThoughtNeeded(required): Whether another thought step is neededthoughtNumber(required): Current thought numbertotalThoughts(required): Estimated total thoughts neededisRevision(optional): Whether this revises previous thinkingrevisesThought(optional): Which thought is being reconsideredbranchFromThought(optional): Branching point thought numberbranchId(optional): Branch identifierneedsMoreThoughts(optional): If more thoughts are needed
Session Management
The tool also supports session management commands:
sessionCommand: Command to manage sessions ('save', 'load', 'getState')sessionPath: Path to save or load the session file (required for 'save' and 'load' commands)
Example: Saving a Session
{
"sessionCommand": "save",
"sessionPath": "/path/to/save/session.json",
"query": "dummy",
"thoughtNumber": 1,
"totalThoughts": 1,
"nextThoughtNeeded": false
}Example: Loading a Session
{
"sessionCommand": "load",
"sessionPath": "/path/to/load/session.json",
"query": "dummy",
"thoughtNumber": 1,
"totalThoughts": 1,
"nextThoughtNeeded": false
}Example: Getting Session State
{
"sessionCommand": "getState",
"query": "dummy",
"thoughtNumber": 1,
"totalThoughts": 1,
"nextThoughtNeeded": false
}Example
Here's an example of how to use the tool:
{
"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
}Response Format
The server responds with:
{
"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"]
}Example Clients
Several example clients are provided to demonstrate different use cases:
sample-client.js: Basic client exampleexample-usage.js: Specific usage examplecodebase-analysis-example.js: Example for codebase analysissession-example.js: Example demonstrating session persistenceadvanced-filtering-example.js: Example demonstrating advanced semantic filtering
To run the session example:
node dist/session-example.jsTo run the advanced filtering example:
node dist/advanced-filtering-example.jsLicense
MIT
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
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The question or problem to analyze | |
| context | No | Additional context information | |
| thought | No | Your current thinking step (if empty, will be generated by Gemini) | |
| approach | No | Suggested approach to the problem | |
| branchId | No | Branch identifier | |
| isRevision | No | Whether this revises previous thinking | |
| sessionPath | No | Path to save or load the session file | |
| metaComments | No | Meta-commentary about the reasoning process | |
| thoughtNumber | Yes | Current thought number | |
| totalThoughts | Yes | Estimated total thoughts needed | |
| revisesThought | No | Which thought is being reconsidered | |
| sessionCommand | No | Command to manage sessions ('save', 'load', 'getState') | |
| confidenceLevel | No | Confidence level in the generated thought (0-1) | |
| alternativePaths | No | Alternative approaches suggested | |
| previousThoughts | No | Array of previous thoughts for context | |
| branchFromThought | No | Branching point thought number | |
| needsMoreThoughts | No | If more thoughts are needed | |
| nextThoughtNeeded | Yes | Whether another thought step is needed |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description fully covers behavioral aspects like meta-commentary, confidence levels, revision, branching, and session persistence. However, it omits potential costs or rate limits associated with the Gemini AI backend, slightly reducing transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-organized with sections and bullet points, but it is overly verbose. Some redundancy exists between the 'when to use' list and 'key features'. Removing repetition would improve conciseness while retaining clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity and lack of output schema, the description adequately explains usage flow and available actions. However, it does not explicitly specify the output structure (e.g., JSON containing generated thought, meta-comments, etc.), leaving minor ambiguity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3. The description adds extra context beyond schema descriptions, e.g., explaining that an empty 'thought' parameter will be AI-generated and that 'thought_number' can exceed initial estimates. This adds meaningful value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool is for dynamic, reflective problem-solving via Gemini AI. It includes specific usage scenarios and features. However, with no sibling tools, differentiation is not assessed, but the purpose is clear and distinct from a generic 'think' tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides a detailed list of when to use the tool, including breaking down complex problems, planning, and analysis needing course correction. It does not explicitly mention when not to use it, but the extensive positive guidance compensates.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v1.0.1- First observed
geminithinking
TDQS
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
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
- AlicenseAqualityCmaintenanceGemini-powered MCP server for automated code review, analysis, and documentation.1391MIT
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/bartekke8it56w2/new-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server