Skip to main content

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:
That’s it. The next time you start a Claude Code session, it will have access to all 20 Nometria tools.
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.
You can also do things like:
  • “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”
Claude Code handles all of it through the MCP tools.

Authentication

The MCP server looks for your API key in this order:
  1. The NOMETRIA_API_KEY environment variable
  2. Saved credentials at ~/.nometria/credentials.json (created by nom login)
If you have already run 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

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.
Run nom login in your terminal first. The MCP server shares credentials with the CLI.Alternatively, tell Claude Code your API key directly:
Claude Code will call nometria_login to save it.
Ask Claude Code to initialize the project:
This calls nometria_init which detects your framework and creates the config file.
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 first time it runs, npx downloads the package. Subsequent starts are faster because the package is cached.To avoid the download delay, install it globally:
Then update the MCP config to use the global install: