What is MCP?
MCP (Model Context Protocol) is a way for AI tools to use external tools directly. Instead of Claude Code running terminal commands and parsing the output, MCP gives it structured tools it can call — like “deploy this app” or “check the status” — and get structured results back. In plain terms: it lets Claude Code talk to Nometria natively, without you having to copy-paste commands.Install the MCP server
Run this once in your terminal:This installs the
@nometria-ai/claude-code package as an MCP server. It runs automatically when Claude Code starts — you do not need to start it manually.Available tools
The MCP server exposes 20 tools that cover the full deployment lifecycle:Authentication
Deployment
GitHub
Instance management
Configuration
Example conversation
Here is what a typical interaction looks like in Claude Code with the MCP server installed:1
You ask Claude Code to deploy
2
Claude Code initializes the project
Claude Code calls
nometria_init to create a config file, detecting your framework automatically.3
Claude Code deploys
Claude Code calls
nometria_deploy to build and push your code.4
Claude Code checks status
Claude Code calls
nometria_status to confirm the deployment succeeded.- “Set the DATABASE_URL environment variable to postgres://…”
- “Upgrade the instance to 8gb”
- “Run a security scan”
- “Show me the logs”
- “Add myapp.com as a custom domain”
Authentication
The MCP server looks for your API key in this order:- The
NOMETRIA_API_KEYenvironment variable - Saved credentials at
~/.nometria/credentials.json(created bynom login)
nom login in your terminal, the MCP server picks up your credentials automatically. Otherwise, you can tell Claude Code your API key and it will save it using the nometria_login tool.
Troubleshooting
Claude Code does not see the Nometria tools
Claude Code does not see the Nometria tools
Make sure you ran the install command:Then restart Claude Code. You can verify the server is registered by running:You should see
nometria in the list.'Not authenticated' errors
'Not authenticated' errors
Run Claude Code will call
nom login in your terminal first. The MCP server shares credentials with the CLI.Alternatively, tell Claude Code your API key directly:nometria_login to save it.'No nometria.json found' errors
'No nometria.json found' errors
Ask Claude Code to initialize the project:This calls
nometria_init which detects your framework and creates the config file.Deploy fails with build errors
Deploy fails with build errors
The MCP server runs your build command (from
nometria.json) before uploading. If the build fails, Claude Code will see the error output and can help you fix it.Make sure your build command works locally first:The MCP server is slow to start
The MCP server is slow to start
The first time it runs, Then update the MCP config to use the global install:
npx downloads the package. Subsequent starts are faster because the package is cached.To avoid the download delay, install it globally: