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
| Tool | Description |
|---|---|
nometria_login | Save your API key or get instructions for browser sign-in |
Deployment
| Tool | Description |
|---|---|
nometria_init | Create a nometria.json config file with auto-detected framework |
nometria_deploy | Build, upload, and deploy to production |
nometria_preview | Create a free staging preview (expires in 2 hours) |
nometria_status | Check deployment status, URL, instance size, and IP |
nometria_logs | View deployment and runtime logs |
nometria_list_apps | List all your deployed apps |
GitHub
| Tool | Description |
|---|---|
nometria_github_connect | Instructions to connect GitHub (requires browser) |
nometria_github_status | Check if GitHub is connected |
nometria_github_repos | List connected GitHub repos |
nometria_github_push | Push local changes to the connected repo |
Instance management
| Tool | Description |
|---|---|
nometria_start | Start a stopped instance |
nometria_stop | Stop a running instance |
nometria_terminate | Permanently delete an instance |
nometria_upgrade | Resize instance (2gb, 4gb, 8gb, 16gb) |
Configuration
| Tool | Description |
|---|---|
nometria_domain_add | Add a custom domain to your app |
nometria_env_set | Set environment variables |
nometria_env_list | List environment variable keys |
nometria_scan | Run an AI security and performance scan |
nometria_setup | Generate AI tool config files for the project |
Example conversation
Here is what a typical interaction looks like in Claude Code with the MCP server installed:Claude Code initializes the project
Claude Code calls
nometria_init to create a config file, detecting your framework automatically.- “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: