StashDog MCP Server
A server providing natural language tools to manage your StashDog inventory.
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
-
Clone or download this MCP server to your local machine:
git clone <repository-url> cd stashdog-mcp-server -
Install dependencies:
npm install -
Build the server:
npm run build -
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
[email protected]
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: [email protected] 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
#hashtagformat and comma-separated lists - Item IDs: Automatically detects UUIDs in various formats
- Custom Fields: Parses
field_name: valuepatterns - 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:
- Environment Token: Set
STASHDOG_AUTH_TOKENin your environment - Runtime Authentication: Use the
authenticatetool to log in - Auto-login: Configure
STASHDOG_EMAILandSTASHDOG_PASSWORDfor 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
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
š License
MIT License - see LICENSE file for details.
š Support
If you encounter any issues:
- Check that your StashDog API is running and accessible
- Verify your authentication credentials
- Check the server logs for detailed error messages
- Ensure all dependencies are properly installed
š Examples in Action
Complete Workflow Example
# Authenticate
authenticate with email: [email protected] 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!
Server Terkait
Kone.vc
sponsorMonetize your AI agent with contextual product recommendations
Tmux
Interact with your Tmux sessions, windows and pane, execute commands in tmux panes and retrieve result.
U301 URL Shortener
Create short URLs using the U301 URL Shortener service.
Multi-Carrier Shipping API ā powered by Secureship
Secureship MCP gives AI assistants access to a multi-carrier shipping API covering rate comparison, label generation, package tracking, pickup scheduling, address book management, shipment history, customs documents, and more ā across carriers like UPS, FedEx, Purolator, Canpar, and others. Browse 150+ live endpoint schemas, parameters, and auth details ā always current, never stale.
Norman Finance
MCP server for managing accounting and taxes with Norman Finance.
Salesforce MCP
Interact with the Salesforce API using jsforce, requiring username and password for authentication.
mcp-me
Your AI assistants don't know who you are. mcp-me fixes that: a local MCP server that gives any AI a full picture of who you are
Fintable MCP
Unofficial MCP server for fintable.io ā manage financial categories, rules, and transactions through AI assistants instead of clicking through multi-step wizards.
Powerpoint
Create PowerPoint presentations with AI-generated images using the Stable Diffusion API.
Vedit-MCP
Perform basic video editing operations using natural language commands. Requires ffmpeg to be installed.
Perfect Wiki
Effortlessly turn your company knowledge into a powerful, always-evolving AI agent that understands and supports your colleagues and customers right in Microsoft Teams & Slack