Get the FREE Ultimate OpenClaw Setup Guide →

mcp -for-pc

针对操作个人电脑的mcp服务器,该项目当前主要针对smart-pet-with-mcp项目的搭配演示用

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio shijianzhong-mcp-server-for-pc npx -y pc-mcp

How to use

This MCP server (PC-MCP) exposes a set of PC-oriented automation commands that leverage weather data and system utilities. It provides weather alerts by US state code, local weather forecasts by coordinates, and practical system actions such as scheduling shutdowns or restarts. It also includes smart browser search capabilities and the ability to capture screenshots. After starting with npx pc-mcp, you can invoke commands like get_alerts, get_forecast, shutdown_system, open_browser_search, and capture_screenshot, each with their respective parameters. For example, get_alerts requires a two-letter US state code (e.g., CA or NY), while get_forecast needs latitude and longitude within valid ranges. The open_browser_search command can optionally take a URL, a preferred browser, and an autoFindUrl flag to infer a URL from your search terms. capture_screenshot lets you save a screenshot to a specified path if needed.

How to install

Prerequisites:

  • Node.js v18 or higher
  • npm (comes with Node.js) or yarn/pnpm as alternative package managers

Option A: Run without installing a global package (recommended)

  1. Ensure Node.js is installed (node -v) and npm is available (npm -v).

  2. Use npx to run the MCP server directly from the npm registry:

    npx pc-mcp

Option B: Install globally and run locally

  1. Install the package globally:

    npm install -g pc-mcp

  2. Start the server:

    pc-mcp

Option C: Local development workflow (from repository)

  1. Clone the repository and navigate into it:

    git clone <repository-url> cd pc-mcp

  2. Install dependencies:

    npm install

    or using pnpm

    pnpm install

  3. Build the project:

    npm run build

  4. Run locally (from built output):

    node build/index.js

Additional notes

Tips and considerations:

  • The server uses the US National Weather Service (NWS) API, so weather data is for the US region.
  • Logs are written to mcp-server-for-pc.log in the current working directory for troubleshooting.
  • Ensure Node.js v18+ is installed and the host system meets the OS requirements (Windows, macOS, Linux).
  • When using open_browser_search, you can leverage autoFindUrl to have the tool infer a URL from your search terms.
  • The npm package name is pc-mcp. Publishing steps in the README show how to login to npm, build, and publish the package.

Related MCP Servers

Sponsor this space

Reach thousands of developers