How to Use the OpenTHC MCP in Claude Code
Run headless OpenTHC compliance checks directly from your terminal with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect OpenTHC MCP to Claude Code
Create your Vinkius account to connect OpenTHC to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Automate your nightly compliance cron jobs
The `list_b2b_transactions` tool fetches all pending wholesale transfers and attached manifests. Claude Code runs this in the background at midnight, piping the output directly into your state reporting pipeline. Before committing the data, your terminal agent calls `list_licenses` to ensure no active transfer involves an expired credential. If it finds a mismatch, it exits with a non-zero status and alerts your pager.
Headless OpenTHC MCP Server audits
The `list_inventory` tool pulls stock quantities, lot numbers, and storage locations across your entire operation. Claude Code executes this endpoint from your CLI to run a silent reconciliation against your internal database. When it detects a discrepancy, the agent queries `list_plants` to trace the missing yield back to its original PIP tag. It generates a formatted text report of the exact variance and dumps it into standard output.
Block bad batches via shell scripts
The `list_lab_results` tool exposes pass/fail determinations and contaminant levels for every batch. You can wire Claude Code into your shipping pipeline to query this endpoint before generating a bill of lading. If a batch fails a heavy metals test, the CLI agent automatically triggers `list_contacts` to find the responsible vendor. It drafts a rejection notice and saves it to your local filesystem, completely headless.
Set up OpenTHC MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seeopenthc-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest OpenTHC transactions." It will automatically discover and invoke the available OpenTHC tools.
claude mcp add --transport http openthc-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about OpenTHC MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the OpenTHC MCP today
We host it, we monitor it, we maintain it. You just paste one token.