What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants like Claude connect to external tools and data sources. Primox provides an MCP server that gives Claude direct access to your shooting data, allowing you to manage your load development workflow through natural conversation.
Once connected, Claude can read your projects, create sessions, log shots, run analysis, and generate reports. Instead of navigating menus and clicking buttons, you can ask Claude to do it for you in plain language.
The MCP server uses your Primox API key for authentication. Claude never sees your password, only the scoped API key you provide. All operations respect the same permissions and rate limits as the REST API.
What You Need
Before setting up the MCP connection, make sure you have the following:
Setting Up Claude Desktop
Claude Desktop supports MCP servers through a JSON configuration file. Follow these steps to connect Primox:
{
"mcpServers": {
"primox": {
"command": "npx",
"args": ["-y", "@primox/mcp-server"],
"env": {
"PRIMOX_API_KEY": "pmx_live_your_key_here"
}
}
}
}Never share your API key publicly or commit it to version control. If you suspect a key has been compromised, revoke it immediately in Settings and create a new one.
Setting Up Claude Code
Claude Code (the terminal-based Claude interface) also supports MCP servers. The configuration goes in your project or global settings:
{
"mcpServers": {
"primox": {
"command": "npx",
"args": ["-y", "@primox/mcp-server"],
"env": {
"PRIMOX_API_KEY": "pmx_live_your_key_here"
}
}
}
}After adding the configuration, Claude Code will automatically connect to the Primox MCP server when you start a new conversation.
Available Tools (53)
The MCP server exposes 53 tools organized into three categories. Claude automatically selects the right tools based on what you ask.
Read Tools(23)
Query your data without making changes. List rifles, projects, sessions, and components. Retrieve session reports, shooting plans, equipment history, and subscription details. Access reference data like calibers, propellants, and published loads.
list_rifles, list_projects, list_sessions, get_report, get_shooting_plan, get_equipment_history, get_published_data, get_subscription, list_barrels, list_powders, list_projectiles, list_primers, list_brass, list_calibers, list_manufacturers, list_propellants, list_cartridges, list_recipes, list_loads, aggregate_powder_performance, aggregate_load_leaderboard, ...Write Tools(19)
Create and modify data. Add new projects, sessions, rifles, and recipes. Log shots, update load statuses, and manage your component library. Delete and restore sessions with full side-effect handling.
create_project, create_session, create_rifle, create_recipe, create_loads, create_barrel, create_powder, create_projectile, create_primer, create_brass, log_shots, update_project, update_session, update_rifle, update_recipe, update_load, delete_session, restore_session, ...Analyze Tools(10)
Run computations on your data. Analyze velocity statistics, group performance, and charge ladders. Compare sessions across time. Run internal ballistics simulations and safety validations. Convert between measurement units.
analyze_velocities, analyze_group, analyze_ladder, analyze_seating_depth, compare_sessions, simulate_ibe, validate_load, convert_units, analyze_stability, compare_stabilityWhat You Can Ask Claude
Here are examples of natural language requests that Claude can handle through the MCP connection:
Show me all my projects and which ones have the most sessions.
Create a new ladder session for my 6.5 Creedmoor project with charge weights from 40.0 to 42.0 grains in 0.3 grain steps.
Pull the report for my last session and tell me which charge weight had the best velocity standard deviation.
Compare my last three sessions and show me if my groups are improving over time.
Run a safety check for 41.5 grains of H4350 in 6.5 Creedmoor with a 140 grain bullet.
What does my subscription allow? How many sessions do I have left this month?
Be specific with names and numbers. Claude can resolve project names and rifle names to their IDs automatically, so you can use natural language like "my 6.5 CM project" instead of UUIDs.
Troubleshooting
If the MCP connection is not working as expected, check these common issues:
Connection refused or server not starting
Make sure Node.js (v18+) is installed and npx is available on your PATH. Try running the npx command manually in a terminal to check for errors. If you are behind a corporate proxy, configure npm to use it.
Authentication failed (401 or 403)
Verify that your API key is correct and has not been revoked. Check that the key has the required scopes for the operation you are attempting (read, write, or analyze). You can view your active keys in Primox Settings.
Tool not found or not available
Restart Claude Desktop or Claude Code to reload the MCP server configuration. Make sure the server name in your config matches exactly: "primox". Check that the @primox/mcp-server package is accessible via npx.
Requests timing out
The MCP server connects to the Primox API over HTTPS. Check your internet connection. If you are on a restricted network, ensure outbound HTTPS traffic to primox.net is allowed. Large data requests (like listing hundreds of sessions) may take longer.
You can verify your connection is working by asking Claude a simple question like "List my rifles" after setup. If it returns your data, everything is connected correctly.
