MCP Gemini Server
Overview
MCP Gemini Server is a server implementation of the Model Context Protocol (MCP) that enables AI assistants to interact with Google's Gemini API for tasks like text generation and analysis.
To use the MCP Gemini Server, clone the repository, set up a virtual environment, install dependencies, and start the server. You can then send MCP requests to the server's endpoint.
- Client-server communication using the MCP protocol. - Message processing for handling client requests. - Error handling and logging for smooth operation. - Support for environment variables to secure sensitive information. - API testing and debugging capabilities.
- Generating text content based on prompts.
- Analyzing text for sentiment or keywords.
- Facilitating chat interactions with AI models.
Add to your AI client
Use these steps to connect MCP Gemini Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-amitsh06": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-amitsh06"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-amitsh06": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-amitsh06"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-amitsh06": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-amitsh06"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-amitsh06": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-amitsh06"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-amitsh06": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-amitsh06"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-amitsh06": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-amitsh06"
]
}
}
}FAQ
What programming language is used for MCP Gemini Server?
The server is implemented in Python.
How do I test the server functionalities?
You can use the included test script to test various functionalities like text generation and analysis.
Is there a specific API key required?
Yes, a Google AI API key is required to use the server.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3184,"uuid":"4c2a373e-d3ae-44d3-aafd-4e71962a522d","name":"mcp-server","title":"MCP Gemini Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/199552766?v=4","created_at":"2025-03-18T03:14:06.683Z","updated_at":"2025-03-18T14:38:48.538Z","status":"created","author_name":"amitsh06","author_avatar_url":"https://avatars.githubusercontent.com/u/199552766?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/amitsh06/mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-17 11:56:56\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]