MCP with Gemini Tutorial
@GuiBibeau
MCP with Gemini Tutorial について
Building MCP Servers with Google Gemini
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-gemini-tutorial": {
"command": "bun",
"args": [
"examples/basic-client.ts"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is MCP with Gemini Tutorial?
It is a tutorial repository that provides the complete code for building a Model Context Protocol (MCP) server with Google's Gemini 2.0 model. The server integrates Brave Search and exposes tools for web and local search.
How to use MCP with Gemini Tutorial?
Install dependencies with Bun, set up your Brave Search and Google API keys in a .env file, then run one of the example clients: bun examples/basic-client.ts or bun examples/gemini-tool-function.ts. The server can also be extended with custom tools by defining a schema and registering them.
Key features of MCP with Gemini Tutorial
- Complete MCP server with Brave Search integration
- Two implemented tools: Web Search and Local Search
- Example clients for basic and Gemini‑powered usage
- Easy to extend with custom tools and schemas
- Uses Bun for fast TypeScript execution
Use cases of MCP with Gemini Tutorial
- Learning to build MCP servers with Gemini 2.0
- Implementing AI‑powered search functionality
- Prototyping AI applications with web and local search capabilities
- Understanding MCP architecture and modular tool design
FAQ from MCP with Gemini Tutorial
What is the Model Context Protocol (MCP)?
MCP is an open standard developed by Anthropic that enables AI models to seamlessly access external tools and resources. It provides interoperability, modularity, and a standardized interface for tool integration.
What are the prerequisites to use this tutorial?
You need Bun for TypeScript execution, a Brave Search API key, and a Google API key for Gemini access.
How do I run the example clients?
Run bun examples/basic-client.ts for basic usage or bun examples/gemini-tool-function.ts for Gemini integration.
Can I extend the MCP server with custom tools?
Yes, you can add new tools by defining a schema, implementing the functionality, and registering it with the MCP server.
What license does this project use?
The project is licensed under the MIT license.
「AI とエージェント」の他のコンテンツ
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
Shell and Coding agent for Claude and other mcp clients
rusiaamanShell and coding agent on mcp clients
Mcp Agent
lastmile-aiBuild effective agents using Model Context Protocol and simple workflow patterns
🔎 GPT Researcher
assafelovicAn autonomous agent that conducts deep research on any data using any LLM providers
MCP-LLM Bridge
patruffBridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
コメント