Use CannMenus Data in Claude Code
Add CannMenus as an MCP server in Claude Code for terminal-based market analysis.
What This Does
Adding CannMenus to Claude Code lets you pull live cannabis market data directly from your terminal. Query brands, pricing, distribution, and stock status without leaving your dev environment. Great for analysts and developers who want to script against real data or automate recurring analyses.
How to Connect
Step 1
Run the Setup Command
Open your terminal and run: claude mcp add --transport http cannmenus https://api.cannmenus.com/mcp/
Step 2
Authorize with Your CannMenus Account
A browser window will open to the CannMenus login page. Sign in with your CannMenus account (the same one you use at cannmenus.com). This links your data permissions automatically via OAuth - no API key needed.
Step 3
Start a New Session
Start a new Claude Code session with: claude — then ask for cannabis market data. Claude Code will call CannMenus tools automatically when your prompt needs market data.
Example Prompts to Try
Tips
- "Pull the top 10 brands in California by estimated sales and save to a CSV"
- "Compare flower pricing across Colorado dispensaries"
- "Find dispensaries that stock Stiiizy but not Cookies in Michigan"
- "Build a report on Massachusetts market trends over the last 90 days"
- "Which brands are gaining the most retail distribution in Illinois?"
Which Model to Use
Tips
- Opus: Best for deep analysis sessions, market reports, and complex multi-step queries. Use when you need the highest quality reasoning.
- Sonnet: Great balance of speed and intelligence for most day-to-day data pulls. Default choice for quick queries.
- Switch models mid-session with /model if a query needs more horsepower.
Tips and Best Practices
Tips
- When Claude Code asks to use CannMenus tools, select "Always allow" so you don't get prompted on every query.
- Always specify states in your prompts. CannMenus data is organized by state and queries without a state will be slower or may fail.
- Ask Claude Code to save results to files - CSV, JSON, or whatever format you need for downstream analysis.
- You can chain data pulls with analysis. Ask it to pull data and then summarize trends, build charts, or generate reports.
- Claude Code can write scripts that use the data, so you can automate recurring analyses.
- For complex multi-tool analysis, use extended thinking: start your prompt with "Think step by step" to help Claude plan which tools to call.
Available Tools
CannMenus provides 20+ tools including: search_products (find products by state, brand, category), search_brands/search_retailers (find brands and dispensaries), sales_rankings (top brands/categories by sales), market_trends (sales over time), brand_stock_status (where a brand is stocked), brand_gap_analysis (retailers carrying competitors but not you), price_comparison (pricing across retailers), and get_product_events (stock and price change history). Claude will pick the right tool automatically based on your question.