Skip to main content

Carrot MCP - A collection of MCP servers

Project description

Carrot MCP

License: Apache-2.0

A collection of MCP (Model Context Protocol) servers for various hardware and data interfaces.

Installation

pip

pip install carrot-mcp

This installs all MCP servers (ds, serial, nfc) by default.

uv

uv pip install carrot-mcp

Install specific servers only

# pip or uv
pip install carrot-mcp[ds]
pip install carrot-mcp[serial]
pip install carrot-mcp[nfc]

Or install sub-packages directly

pip install carrot-mcp-ds
pip install carrot-mcp-serial
pip install carrot-mcp-nfc

Quick Start

uvx (recommended)

# Run a specific server directly (no install needed)
uvx carrot-mcp-ds@latest
uvx carrot-mcp-serial@latest
uvx carrot-mcp-nfc@latest

CLI

# List all available servers
carrot-mcp list

# Run a specific server
carrot-mcp ds
carrot-mcp serial
carrot-mcp nfc

# Run with uv
uv run carrot-mcp ds

Python module

python -m carrot_mcp_ds
python -m carrot_mcp_serial
python -m carrot_mcp_nfc

Available Servers

Server Package Description
DS carrot-mcp-ds Datasheet MCP server
Serial carrot-mcp-serial Serial port MCP server
NFC carrot-mcp-nfc NFC reader MCP server

Serial MCP Tools

Tool Description
version Get server version info
list_ports List available serial ports
open Open a serial port (baudrate, parity, timeouts, buffer_size)
close Close a serial port
read Blocking read from buffer with timeout
recv Non-blocking read from buffer
write Write data (hex or ascii with escape support)
script Execute a sequence of serial operations (write/read/wait/flush)
history Get operation history for a port

MCP Configuration

Add to your MCP client config (e.g., Claude Desktop):

{
  "mcpServers": {
    "carrot-ds": {
      "command": "uvx",
      "args": ["carrot-mcp-ds@latest"]
    },
    "carrot-serial": {
      "command": "uvx",
      "args": ["carrot-mcp-serial@latest"]
    },
    "carrot-nfc": {
      "command": "uvx",
      "args": ["carrot-mcp-nfc@latest"]
    }
  }
}

Development

# Clone and setup
git clone <repo-url>
cd carrot-mcp
uv sync --all-packages

# Run tests
uv run pytest

# Bump version and release
bump.bat                        # interactive
bump.bat carrot-mcp-ds          # direct package

License

Apache License 2.0 - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carrot_mcp-0.0.3.tar.gz (64.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carrot_mcp-0.0.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file carrot_mcp-0.0.3.tar.gz.

File metadata

  • Download URL: carrot_mcp-0.0.3.tar.gz
  • Upload date:
  • Size: 64.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for carrot_mcp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1e832bb26712eb6662f97dfc60591aeb874e759ddc283e6d0b9ce7984d1369fb
MD5 723d4eec44d8ff8dc993be59e1ab65af
BLAKE2b-256 f80280c202f8b792b11aad416392e8580cebced34cf5316a9683731c454685d7

See more details on using hashes here.

File details

Details for the file carrot_mcp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: carrot_mcp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for carrot_mcp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d624fd4931179fcc52f1daa3c839f83b9318b891f377e8d8f9253637b86b50bc
MD5 d2274c2b78eaaa87025d0d0911733f06
BLAKE2b-256 f2cbf1e1e059dea2e3411bb2c1a59e65ad46d86cc74161f0e299ce778c6685fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page