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.
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
A focused task. The right examples. A model that fits
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.
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.
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.
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.
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.
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.
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.
| Setting | Value |
|---|---|
| Server name | 19th |
| Server URL | https://app.19th.com/mcp |
| Transport | Streamable HTTP |
| Authentication | OAuth through your MCP client |
Before adding a server, check whether this endpoint is already configured. Reuse an existing connection and preserve other client settings.
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.
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.
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.
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.
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.
From your data to a model you can use
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.
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:
| Capability | prediction.task | Output | Declaration |
|---|---|---|---|
| Binary classification | binary | class_label or event_probability | One target; exact typed positive_label for probability |
| Multiclass classification | multiclass | class_label | One target with three or more categories |
| Ordinal classification | ordinal | ordered_class | One target and explicit typed order |
| Multilabel classification | multilabel | label_set | Ordered target_columns; omit target_column |
| Regression | regression | numeric_value | One numeric target |
| Count regression | count | count_value | One nonnegative whole-value target |
| Ranking | ranking | ranking_score | Relevance target, group_column, optional candidate_column; metadata excluded from inputs |
| Forecasting | regression or count | numeric_value or count_value | As 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.
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.
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.
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.
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.
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.
| Tool | What it does |
|---|---|
get_skill | Read the current guide or a focused reference |
list_skills | Find the available guides |
get_capabilities | Verify access and list supported tasks, formats and training modes |
| Tool | What it does |
|---|---|
prep_run | Upload and validate data before training |
submit_run | Start training from a ready preparation |
get_results | Follow progress and review model choices |
| Tool | What it does |
|---|---|
get_model | Retrieve a model or refresh its download link |
get_runtimes | Find SDK packages and setup instructions |
get_api_setup | Find the inference API key setup page |
get_download_options | Discover options for custom downloads |
request_download | Prepare selected models and optional SDKs |
get_download | Check download status and get a ready link |
| Tool | What it does |
|---|---|
list_runs | Find runs to review or resume |
cancel_run | Request cancellation of a run |
list_projects | Find groups of related runs |
get_project | Read a project's details |
create_project | Create a group for related runs |
set_run_project | Move a run into or out of a project |
A clear next step for the most common interruptions
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.
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.
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.
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.
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.
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.
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.
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.
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.
Yes. Share the Markdown guide with your agent.