An open API service indexing awesome lists of open source software.

https://github.com/monteslu/robot-mcp

mcp server for johnny-five
https://github.com/monteslu/robot-mcp

Last synced: 8 months ago
JSON representation

mcp server for johnny-five

Awesome Lists containing this project

README

          

# Robot Control Service

A Model Context Protocol (MCP) service that controls a robot arm with a servo motor. When the servo moves, it plays "Hasta la vista, baby!" audio clip.

## Requirements

- Node.js
- Arduino or compatible board connected via USB
- Servo motor connected to pin 10
- Speaker for audio output

## Installation

```
npm install
```

## Usage

1. Connect Arduino board via USB
2. Connect servo to pin 10
3. Run the service:

```
node index.js
```

The service exposes an MCP tool called `moveMyServo` that accepts a `degrees` parameter (0-180) to control the servo position.

## Dependencies

- [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/sdk) - Model Context Protocol implementation
- [johnny-five](https://johnny-five.io/) - JavaScript robotics framework
- [webaudio-node](https://github.com/monteslu/webaudio-node) - Web Audio API for Node.js
- [zod](https://github.com/colinhacks/zod) - Schema validation library