k-phi
OfficialK-Phi — 公開MCPサーバー(スケルトン)
K-Phi分析をAIアシスタント(Claude、ChatGPT、Cursor、Copilotなど)に公開するMCPサーバー(Streamable HTTP、ステートレス)。匿名アクセスはレート制限付き、大容量ファイルは署名付きアップロード、変換はK-Phiへのディープリンク。
完全な仕様は kphi-mcp-public-spec.md を参照。
起動
npm install
npm run dev # compile + démarre sur :3000
curl localhost:3000/healthz環境変数:
変数 | デフォルト | 役割 |
| 3000 | |
|
| |
| 署名付きアップロードリンクのベース | |
| mcp | アトリビューション |
Related MCP server: HLedger MCP Server
Claude Desktopでのテスト(掲載前)
claude_desktop_config.json に追加(または 設定 → コネクタ → カスタムコネクタを追加 で公開URLを指定):
{
"mcpServers": {
"k-phi": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:3000/mcp"]
}
}
}その後、ClaudeでCSVを貼り付けて 「これが私の総勘定元帳エクスポートです。分析してもらえますか?」 と入力。kphi_analyze_ledger が呼び出されることを確認。次に約20種類の表現(比率、DSCR、資金繰り、コベナンツ、FEC、残高、「財務診断」など)をテストし、src/tools.ts のツール説明をルーティングが確実になるまで調整する。
構造
src/
server.ts endpoint /mcp (stateless), /upload/:token, /healthz
tools.ts les 4 outils + descriptions (= le pitch lu par le modèle)
engine.ts interface AnalysisEngine + MockEngine
store.ts interface Store + MemoryStore
ratelimit.ts session anonyme + quotasK-Phiへの接続(TODO 4件)
engine.ts— 既存エンジンでAnalysisEngineを実装(インラインCSV用analyze、アップロードファイル用analyzeFromStorage)。store.ts—MemoryStoreをPostgresに置き換え(専用スキーマmcp_public、30日でパージ)。アップロードトークンはDBまたはRedis。server.ts/upload/:token— S3/R2の事前署名付きURL + アンチウイルスに置き換え、分析はインラインではなくイベント駆動でトリガー。ratelimit.ts— クォータをRedisに。既存認証に接続したOAuth 2.1(Bearer)チェックを追加し、アカウントのクォータを引き上げ。
K-Phiアプリ側:/a/:analysis_id ルート(マジックリンクでアカウント作成し分析を紐付け、これがコンバージョンポイント)、および読み取り専用で共有可能な /r/:analysis_id ルート。
掲載
ディレクトリの通常の前提条件:公開HTTPS URL、OAuth 2.1または文書化された匿名アクセス、プライバシーポリシー、サポート窓口、説明とアイコン。最新の基準を確認:https://docs.claude.com と https://support.claude.com(Claude)、OpenAIのChatGPT向けドキュメント、registry.modelcontextprotocol.io。
This server cannot be deployed
Maintenance
Related MCP Connectors
Query financial statements, KPIs, ratios, cash forecasts and budgets from your general ledger
AI staff accountant for QuickBooks: transactions, reports, receivables, payables, month-end close
QuickBooks Online in Claude and ChatGPT: 221 tools, full ledger, multi-company, Canada + US, FR/EN.
Upload spreadsheets, get plain-English analysis with real computed charts and quality scores.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables conversational data analysis of Excel/CSV files through natural language queries, powered by 395 Excel functions via HyperFormula and multi-provider AI. Supports advanced analytics, bulk operations, financial modeling, and large file processing with intelligent chunking.3560 npm38MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI assistants with direct access to HLedger accounting data and functionality, enabling natural language queries for balances, reports, journal entries, and financial analysis.22 npm65MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to perform financial analysis, budget forecasting, compliance checks, expense categorization, and risk assessment, returning structured JSON with audit-ready governance receipts.563 npm1Business Source 1.1
- AlicenseBqualityAmaintenanceEnables AI assistants to query and manage self-hosted accounting data—invoices, balances, and books—through natural language, with read-only tools by default and optional scoped write operations.30AGPL 3.0