k-phi
OfficialK-Phi — 公共 MCP 服务器(骨架)
公共 MCP 服务器(Streamable HTTP,无状态),向 AI 助手(Claude、ChatGPT、Cursor、Copilot 等)提供 K-Phi 分析能力。匿名访问限流,大文件使用签名上传,通过 deep link 跳转 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: Analytics MCP
在 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、现金流、covenants、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 + quotas接入 K-Phi(4 个 TODO)
engine.ts— 使用现有引擎实现AnalysisEngine(内联 CSV 用analyze,上传文件用analyzeFromStorage)。store.ts— 将MemoryStore替换为 Postgres(专用 schemamcp_public,30 天清理);上传令牌存入数据库或 Redis。server.ts/upload/:token— 替换为 S3/R2 预签名 URL + 防病毒扫描,并改为事件触发分析而非在线执行。ratelimit.ts— 配额存入 Redis;增加 OAuth 2.1(Bearer)校验,接入现有认证体系,为已登录账户解除配额限制。
K-Phi 应用侧:/a/:analysis_id 路由通过 magic link 创建账户并关联分析(这是转化点),/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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access and analyze MonarchMoney personal finance data through natural language queries. Provides comprehensive financial insights including account balances, transaction analysis, budget tracking, and spending patterns with enterprise-grade security.9MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered analytics from Stripe, PayPal, and Google Analytics 4 (BigQuery) data sources with built-in guardrails and automated workflows for financial and web performance insights.
- 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.353636MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI assistants with direct access to HLedger accounting data and functionality, enabling natural language queries for balances, reports, journal entries, and financial analysis.3264MIT
Related MCP Connectors
Open-source AI accounting skills verified by licensed accountants (tax, VAT, payroll).
AI agents for bookkeeping, reconciliation, and financial close for SMBs.
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enab…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/K-phi-Entreprise/K-phi-mcp-public'
If you have feedback or need assistance with the MCP directory API, please join our Discord server