ProjectsMCP
A plugin-based MCP platform providing tools for project file management, Git operations, browser automation, and command execution.
README
ProjectsMCP Platform
ProjectsMCP is now a plugin-based MCP Platform. The outer project remains ProjectsMCP; platform capabilities are added under plugins/.
Project aliases
Configured in config.json:
ai=D:\AIProjectsmarket=D:\MarketResearch
Plugins
Enabled plugins are configured in config.json:
{
"plugins": {
"enabled": ["project", "browser", "git"]
}
}
Platform tools
list_plugins()
Project plugin tools
The Project plugin keeps the original ProjectsMCP tool names:
list_projects()list_files(project, path="")read_file(project, path)read_multiple_files(project, paths)write_file(project, path, content)append_file(project, path, content)project_tree(project, path="", max_depth=3, exclude_patterns=None)search_files(project, pattern, path="", exclude_patterns=None, max_results=200)grep_text(project, query, path="", include_patterns=None, exclude_patterns=None, case_sensitive=False, max_results=100)replace_text(project, path, old_text, new_text, dry_run=True)
Git plugin tools
The Git plugin uses a git_ prefix and runs local Git commands inside configured project roots:
git_version()git_repository_root(project, path="")git_status(project, path="")git_diff(project, path="", staged=false, file_path="")git_log(project, path="", max_count=10)git_branch(project, path="")git_current_branch(project, path="")git_init(project, path="")git_add(project, paths, path="")(compatibility alias for staging)git_stage(project, paths, path="")git_unstage(project, paths, path="")git_commit(project, message, paths=None, path="")git_create_branch(project, branch_name, checkout=true, path="")git_checkout(project, branch_name, path="")
Git commands automatically detect the repository root with git rev-parse --show-toplevel.
Paths remain constrained to the configured project root and are passed to Git relative to
the detected repository root.
The first Git plugin version intentionally avoids remote operations such as push, pull, fetch, and reset. Add them later after local workflows are stable.
Command plugin tools
run_command(command, shell="cmd", cwd="", timeout_seconds=None)run_cmd(command, cwd="", timeout_seconds=None)run_powershell(command, cwd="", timeout_seconds=None)
Commands run without an interactive console. The default command and Git timeouts are
configured in config.json. On timeout, ProjectsMCP terminates the full Windows process
tree and returns timed_out, duration_seconds, and captured output instead of leaving
the MCP request hanging. Output is capped by max_command_output_bytes.
Browser plugin tools
The Browser plugin is backed by Playwright and uses a browser_ prefix:
browser_status()browser_open(url="", headless=false)browser_goto(url)browser_back()browser_text(max_chars=12000)browser_click_text(text, exact=false)browser_fill(selector, value)browser_press(key)browser_screenshot(full_page=true)browser_close()
Screenshots are saved under:
D:\AIProjects\ProjectsMCP\artifacts\browser
Browser setup
After updating dependencies, run these once in the ProjectsMCP environment:
cd /d D:\AIProjects\ProjectsMCP
pip install -r requirements.txt
python -m playwright install chromium
Then restart the server and refresh the connector in ChatGPT.
Start server
Run:
D:\AIProjects\ProjectsMCP\StartProjectsMCP.bat
Local SSE endpoint:
http://127.0.0.1:8090/sse
Expose it to ChatGPT with ngrok or another tunnel:
https://YOUR-NGROK-DOMAIN/sse
After changing Python files, restart StartProjectsMCP.bat, then refresh the connector in ChatGPT.
Structure
ProjectsMCP/
├── server.py
├── config.json
├── artifacts/
│ └── browser/
├── mcp_platform/
│ ├── __init__.py
│ ├── context.py
│ └── plugin_registry.py
├── plugins/
│ ├── __init__.py
│ ├── project.py
│ └── browser.py
└── services/
├── __init__.py
├── browser_service.py
├── config_service.py
└── file_service.py
server.py only bootstraps the platform, creates shared services, loads enabled plugins, and registers platform-level tools. Reusable business logic belongs in services/. Each plugin lives in plugins/ and exposes a create_plugin() factory.
Adding a plugin
- Create
plugins/my_plugin.py. - Implement a class with
name,description, andregister_tools(mcp, context). - Add a
create_plugin()function that returns the plugin instance. - Add the module name, without
.py, toplugins.enabledinconfig.json. - Restart the server and refresh the connector.
Minimal shape:
class MyPlugin:
name = "my_plugin"
description = "What this plugin does."
def register_tools(self, mcp, context):
@mcp.tool()
def my_tool() -> dict:
return {"ok": True}
def create_plugin():
return MyPlugin()
Safety design
The Project plugin keeps the original safety model:
- All paths are resolved relative to the selected project root.
- Path traversal is blocked.
- Write operations are limited to extensions listed in
config.json. - Large file reads are blocked by
max_read_bytes. - Project scanning excludes heavy folders such as
.git,node_modules,bin,obj,dist,build, andartifactsby default. replace_textdefaults todry_run=true.
The Browser plugin currently runs local Chromium through Playwright. Use it for sites you are authorized to access.
Next plugin ideas
- Git remote plugin expansion:
git_fetch,git_pull,git_pushwith confirmation rules - ASP.NET plugin: solution/project discovery,
.csprojreader, Razor search - AI index plugin: project summaries, code index, semantic search
- Office plugin: Word/Excel/PowerPoint automation
- Database plugin: query approved local/private-cloud databases
中文說明
專案簡介
ProjectsMCP 是一個以 Plugin 為核心的 MCP Platform,目標是將各種功能模組化,例如專案管理、Git、Browser、自動化命令,以及未來的 LM Studio、Office、資料庫等插件。
目前平台已具備:
- 專案檔案管理
- Git 版本控制
- Playwright Browser 自動化
- CMD / PowerShell 指令執行
- Plugin 擴充架構
快速開始
- 安裝 Python 3.13 或更新版本。
- 執行
SetupProjectsMCP.bat安裝所需套件。 - 執行
StartProjectsMCP.bat啟動本機 MCP Server。 - 如需讓 ChatGPT 存取,再執行
StartNgrokMCP.bat建立公開網址。
專案目標
本專案希望建立一個容易維護、容易擴充的 MCP Platform,而不是只服務單一功能。Browser Plugin 只是第一個插件,未來會持續加入更多能力。
開發原則
- Plugin 化架構
- Service 與 Plugin 分離
- 優先考量可維護性
- 盡量降低環境相依性
- 使用 Git 進行版本控制
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。