Skip to main content

MCP server that exposes Gemini web search and document question answering tools.

Project description

Gemini Search MCP

PyPI version npm version CI Tests License: MIT

Gemini Search MCP packages a Model Context Protocol server that exposes two tools:

  • web_search – Uses Gemini with Google Search grounding to answer general questions.
  • document_question_answering – Converts local documents to captioned markdown and asks Gemini to answer questions about their contents.

Installation

Python (pip)

pip install gemini-search-mcp

Node.js (npm)

npm install -g gemini-search-mcp

Usage

Set your Google API key (must have Gemini access):

export GOOGLE_API_KEY="your-key"

Run the MCP server (defaults to stdio transport):

gemini-search-mcp run
# or simply
# gemini-search-mcp

Configure Codex automatically (writes to ~/.codex/config.toml by default):

gemini-search-mcp configure --api-key "YOUR_KEY"

Configure Copilot CLI (writes to ~/.copilot/config.json):

gemini-search-mcp configure --cli-type copilot --api-key "YOUR_KEY"

Configure both Codex and Copilot CLI at once:

gemini-search-mcp configure --cli-type both --api-key "YOUR_KEY"

For npm/npx installation with custom command:

gemini-search-mcp configure --command npx --command-args -y gemini-search-mcp --api-key "YOUR_KEY"

Clear cached conversion artifacts:

gemini-search-mcp clear-cache
# 선택 옵션: --cache-dir /custom/path --remove-root

Development

Install in editable mode with testing dependencies:

pip install -e .

Ensure LibreOffice is installed and on PATH if you plan to convert non-PDF documents.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Publishing

For maintainers: See PUBLISHING.md for instructions on how to publish new versions to PyPI and npm.

Changelog

See CHANGELOG.md for a list of changes in each version.

License

MIT – all rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_search_mcp-0.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_search_mcp-0.1.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file gemini_search_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: gemini_search_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for gemini_search_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b7c833e1815b99b7d3ae8d597f06293d96c6afa1ba07ad60ec233760c5855799
MD5 0478740121213790a93d45cbbe79b917
BLAKE2b-256 5929d898ebee295d1b4ff1a4814e931922d553a2e49a860153309b4c85cc716c

See more details on using hashes here.

File details

Details for the file gemini_search_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_search_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf74769644968038fc6875cbace9f667019030e91015e1038c8fc88b28672387
MD5 14a52e65df5786d878b303362fe10eb0
BLAKE2b-256 2c974a1ea76a4bc0d39d3e2af22d5d810d85a162558814fb9dc55fd56b85d24d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page