Skip to main content
Glama
Current RMS MCP Server

Current RMS MCP Server

by nospi
README.md
# Current RMS MCP Server

[![npm version](https://img.shields.io/npm/v/@nospi/current-rms-mcp.svg)](https://www.npmjs.com/package/@nospi/current-rms-mcp)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A Model Context Protocol (MCP) server for integrating with Current RMS - a rental management system API. This server enables AI assistants like Claude to interact with your Current RMS data, managing inventory, opportunities, and customer information.

## ๐Ÿš€ Quick Start

The fastest way to use this MCP server is with npx:

```bash
npx @nospi/current-rms-mcp
```

You'll need to set environment variables for authentication (see Configuration section below).

## ๐Ÿ“‹ Prerequisites

- Node.js 18 or higher
- A Current RMS account with API access
- API credentials (subdomain and API key)

### Getting Current RMS API Credentials

1. Log into your Current RMS account
2. Navigate to **System Setup > Integrations > API**
3. Generate a new API key
4. Note your subdomain (e.g., if your URL is `mycompany.current-rms.com`, your subdomain is `mycompany`)

## ๐Ÿ“ฆ Installation

### Method 1: Using npx (Recommended)

No installation needed! Just run:

```bash
CURRENT_SUBDOMAIN=your-subdomain CURRENT_API_KEY=your-api-key npx @nospi/current-rms-mcp
```

### Method 2: Global Installation

```bash
npm install -g @nospi/current-rms-mcp
```

Then run:

```bash
current-rms-mcp
```

### Method 3: From Source

```bash
# Clone the repository
git clone https://github.com/nospi/current-rms-mcp.git
cd current-rms-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Run the server
npm start
```

## ๐Ÿ”ง Configuration

### Environment Variables

Create a `.env` file in your project root (or set environment variables):

```env
CURRENT_SUBDOMAIN=your-subdomain
CURRENT_API_KEY=your-api-key
```

### Claude Desktop Integration

Add this configuration to your Claude Desktop settings:

**For npx usage:**

```json
{
  "mcpServers": {
    "current-rms": {
      "command": "npx",
      "args": ["@nospi/current-rms-mcp"],
      "env": {
        "CURRENT_SUBDOMAIN": "your-subdomain",
        "CURRENT_API_KEY": "your-api-key"
      }
    }
  }
}
```

**For global installation:**

```json
{
  "mcpServers": {
    "current-rms": {
      "command": "current-rms-mcp",
      "env": {
        "CURRENT_SUBDOMAIN": "your-subdomain",
        "CURRENT_API_KEY": "your-api-key"
      }
    }
  }
}
```

**For local development:**

```json
{
  "mcpServers": {
    "current-rms": {
      "command": "node",
      "args": ["/absolute/path/to/current-rms-mcp/dist/index.js"],
      "env": {
        "CURRENT_SUBDOMAIN": "your-subdomain",
        "CURRENT_API_KEY": "your-api-key"
      }
    }
  }
}
```

## ๐Ÿ› ๏ธ Available Tools

### Product Management

#### `list_products`
Search and list products from your inventory.

```typescript
// Example: List products with pagination
{
  "page": 1,
  "per_page": 20,
  "q": {
    "product_group_id_eq": 5,
    "tag_names_contains": "audio"
  }
}
```

#### `get_product`
Get detailed information about a specific product.

```typescript
// Example: Get product by ID
{
  "id": 123
}
```

### Opportunity Management

#### `list_opportunities`
List rental opportunities (quotes/orders).

```typescript
// Example: List confirmed opportunities in date range
{
  "page": 1,
  "per_page": 10,
  "q": {
    "state_eq": 3,  // 3 = Confirmed
    "starts_at_gteq": "2024-01-01T00:00:00Z",
    "ends_at_lteq": "2024-12-31T23:59:59Z"
  }
}
```

**State values:**
- 0: Open
- 1: Provisional
- 2: Reserved
- 3: Confirmed
- 5: Cancelled
- 6: Ended
- 7: Lost

#### `get_opportunity`
Get details of a specific opportunity.

```typescript
{
  "id": 456
}
```

### Availability

#### `check_availability`
Check product availability for a specific date range.

```typescript
// Example: Check if product is available for rental
{
  "product_id": 123,
  "starts_at": "2024-03-15T09:00:00Z",
  "ends_at": "2024-03-20T17:00:00Z",
  "store_id": 1
}
```

### Customer Management

#### `list_members`
List members (customers/contacts).

```typescript
// Example: Search for active customers by name
{
  "page": 1,
  "per_page": 20,
  "q": {
    "name_cont": "Smith",
    "active_eq": true
  }
}
```

#### `get_member`
Get detailed information about a specific member.

```typescript
{
  "id": 789
}
```

## ๐Ÿงช Development

### Running in Development Mode

```bash
npm run dev
```

### Building

```bash
npm run build
```

### Testing

Test the server connection:

```bash
node test-server.js
```

## ๐Ÿ“ Example Usage with Claude

Once configured, you can ask Claude to:

- "List all audio equipment available next week"
- "Check if the Canon 5D Mark IV is available from March 15-20"
- "Show me all confirmed orders for this month"
- "Find customer John Smith's contact information"
- "List products with the tag 'lighting' in inventory"

## ๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## ๐Ÿ› Troubleshooting

### Common Issues

**Authentication Failed**
- Verify your subdomain and API key are correct
- Check that your API key has the necessary permissions
- Ensure environment variables are properly set

**Connection Errors**
- Check your internet connection
- Verify Current RMS API is accessible
- Check for any firewall restrictions

**Rate Limiting**
- Current RMS has API rate limits
- Implement appropriate delays between requests if needed
- Contact Current RMS support if you need higher limits

## ๐Ÿ“„ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## ๐Ÿ”— Links

- [Current RMS API Documentation](https://api.current-rms.com/doc)
- [Model Context Protocol](https://modelcontextprotocol.io)
- [NPM Package](https://www.npmjs.com/package/@nospi/current-rms-mcp)
- [GitHub Repository](https://github.com/nospi/current-rms-mcp)

## ๐Ÿ’ฌ Support

For issues and questions:
- Open an issue on [GitHub](https://github.com/nospi/current-rms-mcp/issues)
- Check the [Current RMS API docs](https://api.current-rms.com/doc)
- Contact Current RMS support for API-specific questions

---

Made with โค๏ธ by nospi