ProjectsMCP

ProjectsMCP

A plugin-based MCP platform providing tools for project file management, Git operations, browser automation, and command execution.

Category
Visit Server

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:\AIProjects
  • market = 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

  1. Create plugins/my_plugin.py.
  2. Implement a class with name, description, and register_tools(mcp, context).
  3. Add a create_plugin() function that returns the plugin instance.
  4. Add the module name, without .py, to plugins.enabled in config.json.
  5. 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, and artifacts by default.
  • replace_text defaults to dry_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_push with confirmation rules
  • ASP.NET plugin: solution/project discovery, .csproj reader, 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 擴充架構

快速開始

  1. 安裝 Python 3.13 或更新版本。
  2. 執行 SetupProjectsMCP.bat 安裝所需套件。
  3. 執行 StartProjectsMCP.bat 啟動本機 MCP Server。
  4. 如需讓 ChatGPT 存取,再執行 StartNgrokMCP.bat 建立公開網址。

專案目標

本專案希望建立一個容易維護、容易擴充的 MCP Platform,而不是只服務單一功能。Browser Plugin 只是第一個插件,未來會持續加入更多能力。

開發原則

  • Plugin 化架構
  • Service 與 Plugin 分離
  • 優先考量可維護性
  • 盡量降低環境相依性
  • 使用 Git 進行版本控制

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured