Pages機能付きMCP:位置情報デモ
このプロジェクトでは、EdgeOne Pages Functions を使用してユーザーの地理位置情報を取得し、MCP (Model Context Protocol) を通じて大規模な言語モデルと統合する方法を示します。
デモ
展開する
その他のテンプレート: EdgeOne Pages
コンポーネント
1. EdgeOne Pagesの機能:地理位置情報
このプロジェクトには、ユーザーの位置情報を取得する EdgeOne Pages 関数が含まれています。
- EdgeOneリクエストコンテキストを使用して地理位置情報データにアクセスします
- 位置情報をJSON形式で返します
functions/get_geo.ts
にあります
2. MCPサーバーの統合
MCP サーバー コンポーネントは、大規模な言語モデルが地理位置情報データにアクセスするためのインターフェイスを提供します。
- モデルコンテキストプロトコル(MCP)を実装します
- AIモデルで使用できる
get_geolocation
ツールを公開します - EdgeOne Pages Functionを使用して地理位置情報データを取得します
mcp-server/index.ts
にあります
MCP構成
大規模言語モデルで MCP サーバーを使用するには、次の構成を追加します。
もっと詳しく知る
- エッジワンページ
- EdgeOne Pages 関数のドキュメント
- モデルコンテキストプロトコル(MCP) - AIモデルを外部ツールやサービスと統合する方法について学びます
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
EdgeOne Pages 関数を大規模言語モデルと統合し、モデル コンテキスト プロトコル (MCP) を通じてユーザーの地理位置情報を取得して利用します。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides Google Maps API integration, allowing users to search locations, get place details, geocode addresses, calculate distances, obtain directions, and retrieve elevation data through LLM processing capabilities.Last updated -716325TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that enables AI models to access user geolocation information through EdgeOne Pages Functions.Last updated -TypeScriptMIT License
- -security-license-qualityEnables AI models to access user geolocation information through EdgeOne Pages Functions, allowing location-aware AI interactions.Last updated -TypeScriptMIT License
- -security-license-qualityEnables large language models to access user geolocation information through EdgeOne Pages Functions using the Model Context Protocol.Last updated -TypeScriptMIT License