samcorl/metrc-mcp-server
If you are the rightful owner of metrc-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server providing AI agents with access to METRC cannabis compliance documentation across multiple states.
METRC Documentation AI Assistant 🌿
A Model Context Protocol (MCP) server that provides AI agents with searchable access to METRC cannabis compliance documentation across all legal states.
🚀 Live Demo: https://www.metrc.ai
What This Does
Enables AI agents (Claude Desktop, Cursor, etc.) to search and reference 7,282 sections of METRC documentation across 17 states in real-time during conversations.
Quick Start
For Claude Desktop Users
- Visit https://www.metrc.ai
- Download the connector file
- Drag & drop it into Claude Desktop
- Ask: "What are the package labeling requirements in California?"
For Developers
# Clone and setup
git clone https://github.com/your-username/metrc-mcp-server.git
cd metrc-mcp-server
bundle install
# Import documentation (if you have the source data)
bin/import /path/to/metrc_from_printable
# Start MCP server (stdio mode)
bin/mcp_server
# Or start HTTP server
bin/simple_mcp_server
Available Tools
search_metrc_docs
- Full-text search across all documentationget_metrc_endpoint
- Find API endpoint documentationlist_states
- Get all available states
States Covered
CA, CO, NV, OR, WA, AK, MA, ME, MI, IL, MD, PA, NJ, NY, CT, VT, MT
Architecture
- SQLite FTS for fast full-text search
- MCP Protocol for AI agent integration
- HTTP/JSON-RPC transport for web deployment
- Ruby/Sinatra lightweight server
Deployment
Includes deployment scripts for EC2/VPS hosting:
./deploy.sh # Deploy to production server
API Example
curl -X POST https://www.metrc.ai/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_metrc_docs",
"arguments": {"query": "packages"}
}
}'