mind-kernel-mcp
Provides tools to fetch and update a personal Mind Kernel stored as JSON in a GitHub repository, with updates proposed via pull requests.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mind-kernel-mcpfetch my mind kernel core"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mind-kernel-mcp
個人の思考や価値観を言語化した Mind Kernel を、Claude や ChatGPT から安全に参照・更新するための MCP (Model Context Protocol) サーバーです。
リモート MCP サーバー — AWS Lambda 上で動作し、MCP クライアントから HTTP で直接接続できます
OAuth 2.0 認証 — Amazon Cognito による認可と JWT 検証。
/.well-known/oauth-protected-resourceを実装していますSSE ストリーミング — Lambda Function URL のレスポンスストリーミング (
InvokeMode: RESPONSE_STREAM) を利用。API Gateway ではレスポンスストリーミングができないため、この構成を選んでいます更新は必ず Pull Request 経由 — AI による変更提案は PR として作成され、マージ権限は常に人間側にあります
ローカル完全再現 — LocalStack 上に Lambda + DynamoDB を再現し、AWS にデプロイせずに開発できます
カーネルは identity / meta / patterns / backlog の4モジュールで構成され、プライベートリポジトリ上の JSON として管理されます。
詳細ドキュメント: プロジェクトの設計思想やアーキテクチャについては PROJECT_GUIDE.md を参照してください。
アーキテクチャ
本番 (AWS) | ローカル開発 | |
実行環境 | Lambda (arm64 コンテナイメージ) | Docker + LocalStack |
エンドポイント | Lambda Function URL ( | stdio ブリッジスクリプト |
認証 | Cognito OAuth 2.0 / JWT 検証 | API Key |
データストア | DynamoDB (ユーザー別クレデンシャル) | LocalStack DynamoDB |
デプロイ | AWS SAM |
|
Related MCP server: IWL MCP Server
セットアップ
Docker コンテナのビルド
docker compose build環境設定
.envファイルを編集し、以下の項目を設定してください:GITHUB_TOKEN: GitHub Personal Access Token(対象リポジトリに限定した Fine-grained PAT を推奨。必要な権限は PROJECT_GUIDE.md を参照)REPO_OWNER,REPO_NAME: 対象のリポジトリUSER_ID: シードデータとして使用するユーザーID (デフォルトはUUIDが既に設定されています)
ローカルでの実行 (Makefile使用)
Makefile を用意しました。以下のコマンドで簡単に操作できます。
環境の起動 (ビルド + LocalStack + 初期化)
make up※ 初回はイメージのビルドと、LocalStackの起動待ち(数秒)が発生します。 ※ 完了するまで少し待ってください。
MCP サーバーの実行 (クライアント接続用)
make runこのコマンドは標準入出力(stdio)を使用し、MCPクライアントからの接続を受け付けます。
その他のコマンド
make build: Dockerイメージの再ビルドmake logs: アプリケーションとLocalStackのログを表示make shell: コンテナ内のシェルに入るmake down: 環境の停止
VSCode / Claude Desktop での利用
利用形態に合わせて、以下のいずれかの設定を claude_desktop_config.json 等に追記してください。
A. ローカル開発環境 (LocalStck + Docker)
開発中のコードをローカルで即座に動かしたい場合に使用します。
※ 事前に make up でコンテナを起動しておく必要があります。
{
"mcpServers": {
"mind-kernel-local": {
"command": "make",
"args": ["run"]
}
}
}※ 絶対パス指定の例: "command": "/usr/bin/make", "args": ["run", "-C", "/abs/path/to/project"]
B. 本番環境 (AWS Lambda)
デプロイ済みの Lambda 関数に直接接続します。 Dockerコンテナを起動しておく必要がなく、常時利用に適しています。
{
"mcpServers": {
"mind-kernel-remote": {
"serverUrl": "https://<FunctionUrlID>.lambda-url.<Region>.on.aws/",
"headers": {
"X-API-Key": "<ENV: MCP_API_KEY>"
}
}
}
}MCP Inspector でのテスト
ブラウザ上で動作検証ができる MCP Inspector を簡単に起動できます。
make inspector実行すると URL が表示されますので、ブラウザでアクセスしてツールをテストしてください。
使用方法
このサーバーは以下のツールを公開しています: fetch_mind_kernel_core。
引数: {"userId": ""}。
プロジェクト構造
mind_kernel_mcp/: ソースコード。services/: DynamoDB および GitHub サービス。
infra/: インフラストラクチャスクリプト (LocalStack 初期化)。scripts/: ヘルパースクリプト (DB シード)。
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Truth-validated, SHA-512-sealed AI memory for Claude & Cursor. Free tier, OAuth, 38 tools.
Related MCP Servers
- AlicenseBqualityDmaintenanceTransforms a GitHub repository into a structured personal brain for AI to manage tasks, notes, and goals through markdown files. It enables direct interaction with a version-controlled knowledge base, allowing for automated organization and efficient retrieval of information.157 npm2MIT
- FlicenseNot gradedqualityDmaintenanceEnables seamless integration between GitHub, Obsidian, and AI assistants (Claude/ChatGPT) for managing documentation and code workflows.-
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered GitHub automation by connecting Claude AI with GitHub APIs for managing issues and pull requests.-
- AlicenseNot gradedqualityBmaintenanceConnects claude.ai to a private GitHub repo of markdown files as a personal second brain, providing guarded read and write tools for knowledge management.5 npmMIT