GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
11
フォーク
0
イシュー
0
README
InternetGrounding MCP Server
InternetGrounding is a Model Context Protocol (MCP) server that enables fetching up-to-date information from the internet using the Gemini API and search engines. It is suitable for applications that require real-time data grounding.
Key Features
- Integration with the Gemini API for information search and processing.
- Supports stdio-based MCP Server communication.
AskGemini
tool for Gemini-based prompts and responses.- Flexible configuration via environment variables or CLI arguments.
Installation
Prerequisites
- .NET SDK 9.0+
Installation Steps
- Clone the repository and navigate to the
InternetGrounding
folder. - Configure the Gemini API Key and Model ID:
- Command-line arguments:
dotnet run -- --GeminiApi:GEMINI_API_KEY="API_KEY" --GeminiApi:MODEL_ID="model-id"
- Environment variables:
$env:GeminiApi__GEMINI_API_KEY="API_KEY" $env:GeminiApi__MODEL_ID="model-id" dotnet run
- Command-line arguments:
Build & Run
dotnet build
dotnet run -- --GeminiApi:GEMINI_API_KEY="API_KEY" --GeminiApi:MODEL_ID="model-id"
MCP Client Configuration
Example configuration in the MCP client's settings.json
:
{
"mcpServers": {
"InternetGrounding": {
"type": "stdio",
"command": "dotnet",
"args": [
"run",
"--project",
"PATH/InternetGrounding.csproj",
"--",
"--GeminiApi:GEMINI_API_KEY=API_KEY",
"--GeminiApi:MODEL_ID=model-id"
]
}
}
}
Usage
Use the AskGemini
tool to send prompts and receive responses from the Gemini API. Example:
- Send a prompt through the MCP Client.
- Receive a grounded answer from Gemini.