Docs
Open app
On this page

19th MCP
Connect your agent

Use 19th from your agent to prepare your data, train a model, and bring it into your application

Paste this into your agent:

Configuring your client manually? Use https://app.19th.com/mcp as the MCP server URL

Using Codex, Claude Code, or Cursor? Your agent can follow the setup instructions below

CodexClaude CodeCursorMore

Common use cases

A focused task. The right examples. A model that fits

Find a useful first model

Start with the work already in your conversation. Your agent can suggest a few focused applications, explain the data each needs, and recommend one to try first.

Estimate a number

Explore a model for a quantity such as delivery duration or job completion time. Start by defining when the prediction will be made and which inputs will be available then.

Understand a dataset before training

Bring a dataset and an objective. Your agent can work with 19th to clarify the target, create a plan, and explain how the model will be evaluated.

Predict an outcome

Use examples of past outcomes to learn which new cases are likely to have the same result. A starting point might be purchase conversion, customer churn, or whether a support ticket needs escalation.

Categorize messages

Train a routing model from past messages and the team that handled each one. Through MCP, free-text columns are left out of training, so start from the structured fields you have, such as plan, channel or product area. To train on the message text itself, use the Training API with text_columns set to hosted.

Take a trained model into your project

Once you have selected a candidate, your agent can retrieve its model bundle and help you work out how to use it in your application.

Client setup

For agents setting up a connection, and people who prefer to do it themselves

Set up the connection for your client, verify access, and help the user find a useful first model. If they already have a prediction in mind, continue with it. Respect requests for setup only.

Open the 19th dashboard to sign in, or choose Sign up and complete email verification to create your account. If you were invited to a team, use the invited email address. Then complete OAuth in your MCP client; no API key is required. See account access if you need help signing in or reaching your workspace.

Connection details

SettingValue
Server name19th
Server URLhttps://app.19th.com/mcp
TransportStreamable HTTP
AuthenticationOAuth through your MCP client

Before adding a server, check whether this endpoint is already configured. Reuse an existing connection and preserve other client settings.

Agent specific setup

Codex

When the Codex CLI is available, add the server:

codex mcp add 19th --url https://app.19th.com/mcp

If Codex starts an authorization flow, follow it. To sign in or authorize an existing connection, run:

codex mcp login 19th

Check the running command’s result before opening an authorization link yourself. If authorization has already completed, continue to verification. See Codex’s MCP instructions for client details.

If the CLI is unavailable, use the client’s MCP connection settings with the endpoint above. Once the tools are available, follow Train your model below.

Claude Code

Add the server to your user configuration:

claude mcp add --transport http --scope user 19th https://app.19th.com/mcp

This makes the connection available across your local projects. Use the user’s chosen configuration scope if they specified one.

In Claude Code, open /mcp, select 19th, and complete authentication if prompted. Then follow Train your model below. See Claude Code’s MCP instructions for client details.

Cursor

Add this entry to mcpServers in ~/.cursor/mcp.json for a connection available across projects. Merge it with existing entries:

{
  "mcpServers": {
    "19th": {
      "url": "https://app.19th.com/mcp",
      "auth": {
        "CLIENT_ID": "https://cursor.com/oauth/mcp-client.json"
      }
    }
  }
}

For a project-specific connection, use .cursor/mcp.json in that project instead. Complete the sign-in flow in Cursor’s MCP settings, then follow Train your model below. See Cursor’s MCP instructions for client details.

Devin

In Devin, open Customize → MCPs → Add MCP → Add custom MCP. Name the server 19th, choose HTTP, and enter https://app.19th.com/mcp as the server URL. Choose OAuth and Personal access for your own account, then save and connect.

Complete authorization when prompted and use Test tools to check discovery. Once the tools are available in your session, follow Train your model below to verify project access. Adding custom servers requires the Manage MCP Servers permission. See Devin’s MCP instructions.

Other MCP clients

Add a remote Streamable HTTP server using the endpoint above, then complete the client’s OAuth flow. Some apps require the user to add a connection in settings. Guide them through that step and resume verification when the tools become available.

Train your model

From your data to a model you can use

1

Read the guide and verify access

Call get_skill with no arguments to read the workflow, then get_capabilities to verify access and list supported tasks, file formats and training modes. Resolve any access issues before preparing data, and use the tool schemas returned by the connection.

2

Find a useful first model

Use what you know from the conversation to suggest up to three useful predictions. Explain what each does and the data it needs, then recommend a starting point. Continue with an established goal without asking the user to repeat it. Use list_runs when there is relevant work to resume.

For explicit training tasks, choose the output you want:

Capabilityprediction.taskOutputDeclaration
Binary classificationbinaryclass_label or event_probabilityOne target; exact typed positive_label for probability
Multiclass classificationmulticlassclass_labelOne target with three or more categories
Ordinal classificationordinalordered_classOne target and explicit typed order
Multilabel classificationmultilabellabel_setOrdered target_columns; omit target_column
Regressionregressionnumeric_valueOne numeric target
Count regressioncountcount_valueOne nonnegative whole-value target
Rankingrankingranking_scoreRelevance target, group_column, optional candidate_column; metadata excluded from inputs
Forecastingregression or countnumeric_value or count_valueAs for regression or count regression

For ordinal classification, declare order using typed values such as { "type": "string", "value": "low" }. Preserve category and label order in returned predictions. 19th can help label unlabeled examples for category or probability predictions. Preserve any existing labels.

3

Prepare your data

Follow the guide to prepare one table with the target and inputs available when prediction happens. Preserve supplied labels and unlabeled examples. Read define-prediction or training-data when you need help with the prediction or preparation.

Use prep_run with action: "template" for examples matching the connection. Explicit tasks use CSV, its measured byte count and SHA-256 content_digest prefixed sha256:. Use the supported workflows, formats and training modes listed by get_capabilities.

4

Upload and review

Upload the file using the returned instructions, then finalize the same preparation with prep_run. Follow its status until ready and resolve any issues. Review the target, inputs and offered_modes returned for that preparation. Explain the relevant tradeoffs if the user’s preference is unclear; continue when their instructions settle the choice.

5

Train and follow progress

Call submit_run with the ready preparation, a short run name and a mode, within the user’s authorization. Use get_results with the returned run_id to follow progress. Follow its next action, wait value and backoff; a timeout leaves the run running. Retry an uncertain submission with the original key and exact arguments.

6

Review and use your model

Present the model choices returned for this run, including the Fast, Turbo and Warpspeed variants, previews and ready download links. Fast is the default. Use get_model with the returned run_id and model_id when a selection needs retrieval or a fresh link. Help the user try the model in their project, using get_runtimes for a compatible SDK and setup instructions.

Tools

Your agent uses these tools to prepare data, train and use models, and manage runs. It receives the exact arguments and response schemas from the connected server.

Guides and access

ToolWhat it does
get_skillRead the current guide or a focused reference
list_skillsFind the available guides
get_capabilitiesVerify access and list supported tasks, formats and training modes

Train and review

ToolWhat it does
prep_runUpload and validate data before training
submit_runStart training from a ready preparation
get_resultsFollow progress and review model choices

Use and download models

ToolWhat it does
get_modelRetrieve a model or refresh its download link
get_runtimesFind SDK packages and setup instructions
get_api_setupFind the inference API key setup page
get_download_optionsDiscover options for custom downloads
request_downloadPrepare selected models and optional SDKs
get_downloadCheck download status and get a ready link

Manage runs and projects

ToolWhat it does
list_runsFind runs to review or resume
cancel_runRequest cancellation of a run
list_projectsFind groups of related runs
get_projectRead a project's details
create_projectCreate a group for related runs
set_run_projectMove a run into or out of a project

Troubleshooting

A clear next step for the most common interruptions

The tools do not appear

Check the server URL, remote HTTP transport, and the client’s MCP settings. Complete sign-in and refresh the client connection. Some clients require a new session before newly added tools appear.

Sign-in works but access is refused

Read the error from get_capabilities. Check the selected account, invited email address and workspace access. Follow the account access guidance if you need help. Confirm access with get_capabilities before uploading or training.

Preparation reports an issue

Follow the returned field issues and hints. Keep the target present, select existing input columns, and preserve scalar label types. Correct the table or declaration and prepare again only when the response requires a new preparation.

Call times out

Resume reads with the same preparation or run handle. Retry a mutation with the same idempotency key and exact arguments. Do not resubmit with a fresh key merely because a response was lost.

Download is still preparing

Follow its returned readiness and next action. Training completion does not guarantee that every bundle has already been assembled. Request a fresh link if a ready download’s URL expires.

FAQ

Do I need an API key to use MCP?

No. Sign in to your 19th account through your agent’s connection settings. API keys are only needed when calling the Training or Inference API directly.

What type of data do I need?

Bring a table of examples with the information you’ll have when making a prediction. Include any known outcomes, such as whether a customer canceled or how long a delivery took.

If you’re predicting a category or the chance of an outcome, 19th can help label your examples. Tell your agent what you want to predict and the possible labels. To predict a number, your examples need known outcomes to learn from.

Can I run a model in my own application?

Yes. Once your model’s download is ready, your agent can retrieve it and help you set it up with a compatible SDK. You can also get predictions through the Inference API; your agent can help you get the URL and API key. Hosted predictions must be ready before you can use them.

Can I resume or stop a run?

You can leave and come back while training continues. Ask your agent to find the run and check its progress. To stop it, ask your agent to cancel it and confirm whether cancellation succeeded.

Can my agent read this guide directly?

Yes. Share the Markdown guide with your agent.