StashDog MCP Server

StashDog MCP Server

Enables AI assistants to manage StashDog inventory through natural language commands, supporting item management, collections, tags, smart search, and URL imports with secure authentication.

Category
访问服务器

README

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

🛠️ 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 API Configuration
STASHDOG_API_URL=http://localhost:3000/graphql
STASHDOG_AUTH_TOKEN=your_auth_token_here

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

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_API_URL": "http://localhost:3000/graphql",
        "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
  • GraphQL errors
  • Validation errors

📁 Project Structure

stashdog-mcp-server/
├── src/
│   ├── index.ts              # Main MCP server
│   ├── client.ts             # GraphQL client wrapper
│   ├── types.ts              # TypeScript types
│   ├── nlp-utils.ts          # Natural language processing
│   └── graphql/
│       └── operations.ts     # GraphQL queries and mutations
├── 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!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选