MCP.so
ログイン

MCP with Gemini Tutorial

@GuiBibeau

MCP with Gemini Tutorial について

Building MCP Servers with Google Gemini

基本情報

カテゴリ

AI とエージェント

ランタイム

node

トランスポート

stdio

公開者

GuiBibeau

設定

以下の設定を使って、このサーバーを 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 とエージェント」の他のコンテンツ