Skip to main content
Glama
StashDog MCP Server

StashDog MCP Server

StashDog MCP Server

A Model Context Protocol (MCP) server that provides natural language tools for managing your StashDog inventory. This server enables AI assistants to interact with your StashDog inventory through intuitive natural language commands.

šŸš€ Features

  • Natural Language Interface: Use plain English to manage your inventory

  • Comprehensive Item Management: Add, update, search, delete, and organize items

  • Collection Management: Create and manage collections with ease

  • Smart Search: Intelligent search across your inventory with complex queries

  • Tag Management: Create, rename, and organize tags

  • URL Import: Import items directly from URLs

  • Authentication: Secure authentication with your StashDog account

  • Rich Formatting: Beautiful, formatted responses with emojis and structured data

Related MCP server: lista-compras-mcp

šŸ› ļø Installation

  1. Clone or download this MCP server to your local machine:

    git clone <repository-url>
    cd stashdog-mcp-server
  2. Install dependencies:

    npm install
  3. Build the server:

    npm run build
  4. Configure environment variables:

    cp .env.example .env
    # Edit .env with your StashDog API configuration

āš™ļø Configuration

Environment Variables

Create a .env file in the root directory:

# StashDog Supabase Configuration
STASHDOG_SUPABASE_URL=http://localhost:54321
STASHDOG_SUPABASE_ANON_KEY=your_anon_key_here
STASHDOG_AUTH_TOKEN=your_auth_token_here

# Optional: Pre-configured credentials
STASHDOG_EMAIL=your_email@example.com
STASHDOG_PASSWORD=your_password

This server only uses user access tokens for requests. Do not provide a service role key.

MCP Client Configuration

Add this server to your .cursor/mcp.json or similar MCP client configuration:

{
  "mcpServers": {
    "stashdog": {
      "command": "node",
      "args": ["/path/to/stashdog-mcp-server/dist/index.js"],
      "env": {
        "STASHDOG_SUPABASE_URL": "http://localhost:54321",
        "STASHDOG_SUPABASE_ANON_KEY": "your_anon_key_here",
        "STASHDOG_AUTH_TOKEN": "your_token_here"
      }
    }
  }
}

šŸ”§ Available Tools

1. authenticate

Authenticate with your StashDog account.

Example:

authenticate with email: user@example.com and password: mypassword

2. manage_inventory_items

Add, update, search, delete, or manage inventory items using natural language.

Examples:

  • "Add a new MacBook Pro with tags electronics, work, expensive"

  • "Search for items tagged with kitchen"

  • "Update item abc123 to add note about warranty expiring soon"

  • "Delete item xyz789"

  • "Find all storage containers"

  • "Add item called 'Wireless Mouse' with notes 'Logitech MX Master 3' and tags office, electronics"

3. manage_collections

Create, update, delete collections or manage items within collections.

Examples:

  • "Create a new collection called 'Kitchen Appliances'"

  • "Add items abc123, def456 to collection xyz789"

  • "Delete collection old-stuff"

  • "Update collection xyz789 to change name to 'Home Office'"

4. import_from_url

Import items from URLs (product pages, images, etc.).

Example:

import_from_url: https://example.com/product/laptop

5. manage_tags

Create, search, rename, or delete tags.

Examples:

  • "Create tag electronics"

  • "Search for tags containing kitchen"

  • "Rename tag old-name to new-name"

  • "Delete tag unused-tag"

6. get_inventory_stats

Get statistics about your inventory.

Example:

get_inventory_stats

7. smart_search

Perform intelligent searches with natural language queries.

Examples:

  • "Show me all electronics in the office"

  • "Find kitchen items that are favorited"

  • "List storage containers with more than 5 items"

8. manage_users

Fetch user details.

Example:

manage_users with userId: abc123

9. manage_notifications

Fetch user notifications.

Examples:

  • "Fetch all unread notifications"

  • "Get notifications with a limit of 10"

10. manage_groups

Fetch user groups.

Example:

manage_groups

11. manage_subscriptions

Manage subscriptions including fetching details and creating subscriptions.

Examples:

  • "Get subscription details for US in USD"

  • "Create a subscription with tier PREMIUM"

šŸ“ Usage Examples

Adding Items

Add a new item called "Gaming Keyboard" with notes "Mechanical switches, RGB lighting" and tags gaming, electronics, desk-setup

Searching Items

Find all items tagged with electronics that are in storage containers

Managing Collections

Create a new collection called "Home Office Setup" with description "Everything needed for working from home"

Complex Operations

Search for items with tags kitchen, appliances limit 10

šŸŽÆ Natural Language Parsing

The server includes sophisticated natural language parsing that understands:

  • Actions: add, create, update, modify, delete, remove, search, find, favorite, etc.

  • Tags: Supports #hashtag format and comma-separated lists

  • Item IDs: Automatically detects UUIDs in various formats

  • Custom Fields: Parses field_name: value patterns

  • Storage Indicators: Recognizes storage/container keywords

  • Quotes: Handles quoted names and descriptions

  • Limits and Offsets: Understands pagination keywords

šŸ” Authentication

The server supports multiple authentication methods:

  1. Environment Token: Set STASHDOG_AUTH_TOKEN in your environment

  2. Runtime Authentication: Use the authenticate tool to log in

  3. Auto-login: Configure STASHDOG_EMAIL and STASHDOG_PASSWORD for automatic authentication

šŸ“Š Response Format

All responses follow a consistent format:

{
  "success": true,
  "message": "āœ… Successfully added item 'Gaming Keyboard' with ID: abc123",
  "data": {
    "id": "abc123",
    "name": "Gaming Keyboard",
    "tags": ["gaming", "electronics", "desk-setup"]
  }
}

šŸ› Error Handling

The server provides detailed error messages for common scenarios:

  • Missing required parameters

  • Authentication failures

  • Network connectivity issues

  • Supabase REST errors

  • Validation errors

šŸ“ Project Structure

stashdog-mcp-server/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts              # Main MCP server
│   ā”œā”€ā”€ client.ts             # Supabase REST client wrapper
│   ā”œā”€ā”€ types.ts              # TypeScript types
│   ā”œā”€ā”€ nlp-utils.ts          # Natural language processing
│   └── graphql/
│       └── operations.ts     # Legacy GraphQL queries (unused)
ā”œā”€ā”€ dist/                     # Compiled JavaScript
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
ā”œā”€ā”€ .env.example
└── README.md

šŸš€ Development

Running in Development Mode

npm run dev

Building

npm run build

Testing

npm test

šŸ¤ Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Add tests if applicable

  5. Submit a pull request

šŸ“„ License

MIT License - see LICENSE file for details.

šŸ†˜ Support

If you encounter any issues:

  1. Check that your StashDog API is running and accessible

  2. Verify your authentication credentials

  3. Check the server logs for detailed error messages

  4. Ensure all dependencies are properly installed

šŸŽ‰ Examples in Action

Complete Workflow Example

# Authenticate
authenticate with email: user@example.com and password: mypassword

# Add some items
Add a new MacBook Pro with tags electronics, work, laptop and notes "16-inch, M2 chip, 32GB RAM"

# Create a collection
Create a new collection called "Work Equipment" with description "All items for remote work"

# Search for items
Find all items tagged with electronics

# Get stats
get_inventory_stats

# Import from URL
import_from_url: https://example.com/product/wireless-mouse

# Smart search
Show me all work-related items that are favorited

This MCP server makes managing your StashDog inventory as easy as having a conversation with an AI assistant!

Available Tools

11 tools
authenticateC

Authenticate with StashDog using email and password.

Inputs: email (required), password (required).

get_inventory_statsB

Get statistics about your inventory including item count, collection count, and tag count.

Inputs: no named parameters.

import_from_urlC

Import items from URLs (e.g., product pages, images) into the inventory.

Inputs: url (required).

manage_collectionsC

Create, update, delete collections or manage items within collections using natural language instructions.

Inputs: instruction (required).

manage_groupsB

Fetch user groups.

Inputs: no named parameters.

manage_inventory_itemsB

Add, update, search, delete, or manage inventory items using natural language instructions. Supports complex operations like adding items with tags, notes, custom fields, and organizing them in containers.

Inputs: instruction (required).

manage_notificationsB

Fetch user notifications.

Inputs: status, limit, offset.

manage_subscriptionsC

Manage subscriptions including fetching details and creating subscriptions.

Inputs: countryCode (required), currencyCode (required).

manage_tagsC

Create, search, rename, or delete tags using natural language instructions.

Inputs: instruction (required).

manage_usersC

Manage users including fetching user details.

Inputs: userId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting different resources (inventory, collections, tags, users, etc.), but 'manage_inventory_items' and 'smart_search' could overlap in search functionality, and 'manage_collections' and 'manage_groups' might be confused for similar organizational concepts. Descriptions help clarify, but some ambiguity remains.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, all using snake_case with clear action verbs like 'manage', 'get', 'import', and 'authenticate'. This predictability makes it easy for agents to understand and select tools.

    Tool Count5/5

    With 11 tools, the count is well-scoped for an inventory management server, covering authentication, core operations (inventory, collections, tags), and auxiliary features (users, notifications, subscriptions). Each tool appears to earn its place without bloat or thinness.

    Completeness4/5

    The toolset provides comprehensive CRUD/lifecycle coverage for inventory management, including import, search, and organization features. Minor gaps exist, such as no explicit tool for updating user details or handling subscription cancellations, but agents can likely work around these with the available 'manage' tools.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to manage inventory items, locations, and labels in a self-hosted Homebox instance using natural language, with support for flexible URL configurations.
      21
      3
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to manage shopping lists and items (create, edit, delete, mark as purchased) via integration with a backend API.
      8
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to manage 3D printer filament inventory through Spoolman's API, allowing natural language queries and commands for CRUD operations on vendors, filaments, spools, settings, and more.
      34
      17 npm
      19
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      Enables AI assistants to manage 3D printing inventory, filament spools, printers, projects, and print trackers through a self-hosted Print Vault instance.
      40
      AGPL 3.0