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 服务器
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
Shell and Coding agent for Claude and other mcp clients
rusiaamanShell and coding agent on mcp clients
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
Web Agent Protocol
OTA-Tech-AI🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
Model Context Protocol Server for Home Assistant
tevonsbA MCP server for Home Assistant
评论