MCP.so
登录

MCP Gemini Server

@amitsh06

基本信息

分类

AI 与智能体

传输方式

stdio

作者

amitsh06

关于 MCP Gemini Server

暂无概览

MCP Gemini Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-amitsh06": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        "venv"
      ]
    }
  }
}

MCP Gemini Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Gemini Server?

MCP Gemini Server is an implementation of the Model Context Protocol (MCP) that enables AI assistants like Claude to interact with Google's Gemini API. It allows AI assistants to request text generation, text analysis, and maintain chat conversations through the Gemini API.

How to use MCP Gemini Server?

Install Python 3.7+ and obtain a Google AI API key. Clone the repository, create a virtual environment, install dependencies, and set your API key in a .env file as GEMINI_API_KEY. Start the server with python server.py, then send POST requests to the /mcp endpoint with a JSON payload containing the action and parameters.

Key features of MCP Gemini Server

  • Implements MCP protocol for secure message exchange.
  • Generates text via Gemini with configurable temperature and max tokens.
  • Analyzes text for sentiment, summary, keywords, or general analysis.
  • Supports multi-turn chat conversations with Gemini.
  • Uses .env file for secure API key storage.
  • Provides health check and model listing endpoints.

Use cases of MCP Gemini Server

  • AI assistants generating creative content like poems or stories.
  • Analyzing sentiment of user-provided text.
  • Conducting interactive Q&A sessions with context.
  • Summarizing documents or extracting keywords.
  • Enabling Claude to leverage Gemini's text capabilities.

常见问题

1

What actions does MCP Gemini Server support?

It supports three actions: `generate_text`, `analyze_text`, and `chat`.

2

What parameters are required for text generation?

You must provide a `prompt`. Optional parameters include `temperature` (0.0 to 1.0) and `max_tokens`.

3

What analysis types are available?

The `analysis_type` parameter can be `'sentiment'`, `'summary'`, `'keywords'`, or `'general'`.

4

How do I start the server?

Run `python server.py` after installing dependencies and setting your `GEMINI_API_KEY` in a `.env` file.

5

What HTTP endpoints does the server expose?

It exposes `GET /health`, `GET /list-models`, and `POST /mcp` as the main endpoint for MCP requests.

评论

AI 与智能体 分类下的更多 MCP 服务器