loading…
Search for a command to run...
loading…
A local Model Context Protocol server designed to share contextual information between an AI and a user. It primarily provides a tool to retrieve the current da
A local Model Context Protocol server designed to share contextual information between an AI and a user. It primarily provides a tool to retrieve the current date and time in ISO 8601 format based on the server's local timezone.
日本語 English
local-context-mcp は、MCP サーバ実装の習作として作ったミニプロジェクトです。
AIとユーザが同じ環境にいる前提で、現在の文脈を共有するために便利、かもしれない、機能を提供します。
when-is-nowTZ、GeoIP cache 付き自動取得、ローカル環境の順で解決しますTZ を明示設定してくださいwhere-are-weTokyo, Tokyo-to や Tokyo, JP のような、LLM が文脈として扱いやすい粗い表現ですcity、region、country のうち使える情報を優先して組み立てます詳細仕様は docs/docker.md を参照。
npm run docker:build
{
"mcpServers": {
"local-context": {
"command": "docker",
"args": ["run", "-i", "--rm", "obaratch/local-context-mcp-server"]
}
}
}
args に -e TZ=Asia/Tokyo を追加して明示設定できるtools/list で以下のツールが見えることwhen-is-nowwhere-are-we{
"mcpServers": {
"local-context": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"source=local-context-store,target=/data",
"obaratch/local-context-mcp-server"
]
}
}
}
local-context-store に保存されるДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"local-context-mcp": {
"command": "npx",
"args": []
}
}
}