Device Peripherals MCP server

Provides peripheral device interaction capabilities for computer hardware including cameras, printers, audio devices, and displays, enabling image and video capture, print job management, audio recording and playback, and screen recording with cross-platform support and automatic device detection.
Back to servers
Setup instructions
Provider
Akshit Sinha
Release date
Jun 08, 2025
Stats
5 stars

The Devices MCP Server offers a unified API for controlling, monitoring, and managing peripheral devices connected to your computer. This Model Context Protocol (MCP) server provides seamless integration with various hardware, including cameras, printers, audio devices, and screen capture functionality.

Supported Features

  • Camera Control: Capture images and record video from connected cameras
  • Print Management: Send documents to printers and manage print jobs
  • Audio Capabilities: Record from microphones and play audio through speakers
  • Screen Capture: Take screenshots and record screen activity from connected displays

Prerequisites & Installation

System Dependencies

The following system dependencies are required for full functionality:

  • FFMPEG: Required for screen and camera recording functionality
  • PortAudio: Required for audio recording functionality

Installing Dependencies

macOS

brew install ffmpeg portaudio

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install ffmpeg portaudio19-dev

Linux (Fedora)

sudo dnf install ffmpeg portaudio-devel

Windows

winget install ffmpeg

Project Installation

  1. Clone the repository:
git clone https://github.com/akshitsinha/mcp-device-server.git
cd mcp-device-server
  1. Install Python dependencies:
uv sync

Usage

Running the Server

You can run the server directly:

uv run src/main.py

Integration with Claude Desktop

Add the following configuration to your claude_desktop_config.json:

{
  "mcpServers": {
   "mcp-device-server": {
    "command": "uv",
    "args": [
      "--directory",
      "/path/to/mcp-device-server",
      "run",
      "src/main.py"
    ]
   }
  }
}

Then restart Claude Desktop to load the server.

Configuration

Configure the server using environment variables. You can set these or create a .env file in the project root.

Available configuration options:

MCP_HOST=127.0.0.1        # Server host address
MCP_PORT=8000             # Server port
MCP_ENABLE_CAMERA=true    # Enable camera functionality
MCP_ENABLE_PRINTER=true   # Enable printer functionality
MCP_ENABLE_AUDIO=true     # Enable audio functionality
MCP_ENABLE_SCREEN=true    # Enable screen functionality

Available MCP Tools

Camera Tools

  • list_cameras: List all connected cameras
  • get_camera_info: Get detailed camera information
  • capture_image: Take a picture from a camera
  • start_video_recording: Begin video recording
  • stop_video_recording: Stop video recording

Printer Tools

  • list_printers: List available printers
  • print_file: Send a file to a printer
  • print_as_pdf: Print file as PDF
  • get_print_job: Get print job information
  • cancel_print_job: Cancel a print job

Audio Tools

  • list_audio_devices: List all audio input/output devices
  • record_audio: Record from an input device
  • stop_record_audio: Stop recording from an input device
  • play_audio: Play audio through a device

Screen Tools

  • list_displays: List connected displays
  • capture_screenshot: Take a screenshot
  • record_screen: Start screen recording
  • stop_record_screen: Stop screen recording

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "mcp-device-server" '{"command":"uv","args":["--directory","/path/to/mcp-device-server","run","src/main.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "mcp-device-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/mcp-device-server",
                "run",
                "src/main.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "mcp-device-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/mcp-device-server",
                "run",
                "src/main.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later