Gemini Search MCP
Gemini Search MCP packages a Model Context Protocol server that exposes five 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.
- get_document_content – Converts a document to markdown and returns the full content for reading.
- get_document_chunk – Retrieves specific chunks of large documents for easier processing.
- get_next_chunk – Automatically continues reading from where you left off (stateful).
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.
Metadata
Release files for gemini-search-mcp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gemini_search_mcp-0.3.1.tar.gz | 18.1 kB | Without provenance | Details for gemini_search_mcp-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gemini_search_mcp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for gemini_search_mcp-0.3.1-py3-none-any.whl |
Total release size: 37.7 kB
Release files / gemini_search_mcp-0.3.1.tar.gz
| Download URL | gemini_search_mcp-0.3.1.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b30450c5272aec8e726fbd4292e689491fea87303c1bc86d62c6f48246054a87
|
|
BLAKE2b-256 checksum How to use checksums |
754af5a4143cf2551cd6574b5bdd040a68a5a40a9ab4b22d2b8d5a1090f3ecd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.66.5 importlib-metadata/8.7.0 keyring/25.6.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.12.7
|
Release files / gemini_search_mcp-0.3.1-py3-none-any.whl
| Download URL | gemini_search_mcp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86003ee6a516a0e83bc0460e2b6444d561c59f8cd04e2c5969e2051cdc43be01
|
|
BLAKE2b-256 checksum How to use checksums |
7f704b7987f465f00d940020b4fadb6878af35ad19c5fdaf29c3b355834fab54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.66.5 importlib-metadata/8.7.0 keyring/25.6.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.12.7
|
Security for gemini-search-mcp 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.