portfolio-mcp
portfolio-mcp
一个 MCP 服务器,用于读取一个包含多个项目的目录,并告诉你其中有什么:每个项目使用什么技术栈、是否在 git 中、部署在哪里、哪些已经过时,以及哪些最接近盈利。
它是只读的。它永远不会写入、移动或删除它扫描的任何内容。
安装
npx portfolio-mcp --root /path/to/your/projects使用 Claude Code 注册它:
claude mcp add --scope user portfolio \
-e PORTFOLIO_ROOT=/path/to/your/projects \
-- npx -y portfolio-mcp或者在读取 mcpServers 的任何客户端中:
{
"mcpServers": {
"portfolio": {
"command": "npx",
"args": ["-y", "portfolio-mcp"],
"env": { "PORTFOLIO_ROOT": "/path/to/your/projects" }
}
}
}Related MCP server: codescan-mcp
配置
没有任何硬编码。扫描根目录按以下顺序解析:
命令行中的
--root <path>(或--root=<path>)PORTFOLIO_ROOT环境变量进程的工作目录
变量 | 默认值 | 用途 |
| 工作目录 | 存放要扫描项目的目录 |
| 未设置 | 标识自托管部署的主机名或地址。未设置时,永远不会报告 |
| 未设置 | 设置为 |
_archive、_backups、node_modules、.git 以及点开头的目录都会被跳过。
工具
清单
工具 | 说明 |
| 所有项目,可按技术栈、部署状态、平台或 GitHub 是否存在进行筛选 |
| 深入查看单个项目:技术栈、依赖、git、部署、就绪情况、代码行数 |
| 按名称、描述、框架、依赖或类别进行匹配 |
部署
工具 | 说明 |
| 所有项目按平台分组:Vercel、Netlify、Railway、Docker、自托管、仅本地 |
| 单个项目携带的部署配置,以及其 git 状态 |
| 未提交的改动、缺失的远程仓库、超过 90 天未更新的仓库、完全没有 git 的目录 |
收入
工具 | 说明 |
| 对单个项目进行 1 到 10 的打分,涵盖认证、支付、落地页、部署、API、README |
| 对所有项目进行排序,并找出其中速胜的机会 |
| 给出单个项目的具体后续步骤,按优先级排序 |
| 汇总视图:常用框架、反复出现的技术栈、优势 |
维护
工具 | 说明 |
| 对单个项目运行 |
| 按距离上次提交的天数排序项目 |
它涉及的内容
需要明确这一点,因为这个服务器会读取你关心的目录:
只读。 没有工具会写入、移动、重命名或删除文件。
路径隔离。 项目名是一个目录项。路径分隔符、
..、绝对路径、盘符、空字节和 Windows 设备名都会被拒绝,解析后的路径随后会被检查是否位于配置的根目录内。没有任何办法让它读取相邻目录。不调用 shell。 每个子进程都通过
execFileSync并使用参数数组运行。目录名永远不会被拼接成命令字符串。子进程。
git用于获取仓库状态;npm/pip只在outdated_deps中运行。网络。 只有
outdated_deps会访问 npm 和 PyPI 包注册表,因为这是npm outdated、npm audit和pip list --outdated的行为。设置PORTFOLIO_OFFLINE=1后,它会拒绝访问。其他所有工具都在本地运行。不读取凭据。 服务器不读取任何令牌,也不向任何地方发送任何内容。
评分
revenue_scan 和 find_opportunities 会根据易于检测的信号产生 1 到 10 的评分:部署配置、认证库、支付库、登录页入口、README、git 远程、API 框架,再加上一个类别乘数。这是一种用于对大型目录进行排序的分诊启发式方法,而不是估值。请将排名视为“先看这些”,而不是一个本身就具有意义的数字。
开发
npm ci
npm run build
npm test # builds, then runs node --test
npm pack --dry-run许可证
MIT。见 LICENSE。
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
- FlicenseNot gradedqualityDmaintenanceProvides unified project context and monitoring capabilities including project health metrics, build diagnostics, Git integration, and infrastructure validation to initialize development sessions with comprehensive project information.
- AlicenseNot gradedqualityDmaintenanceScans codebases for TODOs, FIXMEs, code complexity, file stats, and dependencies, generating a health report with a letter grade. Zero configuration required.18MIT
- AlicenseAqualityAmaintenanceScans a repository for maintenance toil (flaky tests, expiring certificates, TODO rot, dead flags, etc.) and returns a prioritized queue with a credit ledger to track who cleared what.71MIT
- AlicenseAqualityAmaintenanceVisual tech-stack inventory of any codebase: languages, frameworks, databases, AI SDKs, infra.2MIT
Related MCP Connectors
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Generate AGENTS.md, AP2 compliance docs, checkout rules, debug playbook & MCP configs from any repo.
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/NawafSheikh/portfolio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server