• PREDICTION
  • MANAGEMENT
  • AUTOMATION
  • HUMAN

How to train and run ML models with your agent

Connect MindsDB to your AI client to turn database tables into predictive tools. You use SQL to manage the entire machine learning lifecycle without writing Python.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I train and run ML models using my AI?

Your agent sends SQL commands to MindsDB to create predictors and pull real-time forecasts from your data. You get predictive intelligence directly through your chat interface. Here is how the process works.

The outcomes

What you get from your requests

Your agent acts as the bridge between your natural language and the MindsDB engine.

PREDICTION

Live model outputs

Your agent runs queries that pull real-time forecasts from your trained predictors. You get immediate answers based on your current data.

MANAGEMENT

Model oversight

Your agent checks which predictors are active and ready. You can see the status of your models without manual database checks.

AUTOMATION

SQL-driven training

Your agent writes the SQL needed to build new predictors. This turns your existing tables into training sets automatically.

HUMAN

Manual validation

You decide which models are accurate enough to trust. Your agent provides the data, but you make the final decision on deployment.

The workflow

What your agent does when you ask for machine learning

Your agent translates your intent into specific database operations.

  1. Find existing models

    Your agent scans your MindsDB environment to see which predictors are already available for use.

    list_models
  2. Check model status

    Your agent pulls specific metadata and configuration details for a particular predictor.

    get_model
  3. Build new predictors

    Your agent generates the SQL required to train a new model using your database tables.

    execute_sql_query
  4. Generate forecasts

    Your agent sends queries to the database to produce real-time predictions from your models.

    execute_sql_query

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute MindsDB tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to kick off your first ML task.

Starting points

Replace the table and column names with the ones from your actual database.

MindsDB Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_wo8z4btUozCcWNcaSyNerjmMILAoiY0Mm4LOh9m9/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, MindsDB capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "mindsdb-ai-database-predictors-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_wo8z4btUozCcWNcaSyNerjmMILAoiY0Mm4LOh9m9/mcp"
    }
  }
}
Copy into chat04
  • 01

    List all the machine learning models in my MindsDB database.

  • 02

    Show me the details for the sales_forecast model.

  • 03

    Create a new predictor called customer_churn using my users table.

  • 04

    Run a prediction for next month's revenue using my sales_forecast model.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect MindsDB once, then ask.

One connection gives your agent direct access to your database's predictive tools. Your credentials stay encrypted on our side.

Connect MindsDB to your agent

FAQ

How this task behaves

  • 01

    Can your agent delete my original data tables?

    No. Your agent only has tools to execute queries, list models, and get model details. It cannot perform delete operations on your tables.

  • 02

    Does your agent handle the actual model training math?

    No. Your agent sends the SQL command to MindsDB, and MindsDB performs the actual training and computation.

  • 03

    Can I ask your agent to fix a model that is performing poorly?

    Your agent can help you identify the model and see its details, but you must decide how to adjust the training parameters in your SQL commands.

  • 04

    Can your agent create new database tables?

    No. The tools are limited to model management and query execution. It cannot alter your database schema.

  • 05

    How does your agent know which models exist?

    Your agent uses the list_models tool to scan your MindsDB environment and find available predictors.

  • More questions about MindsDB? The Connector page answers them. See everything the MindsDB Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from MindsDB to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    MindsDB plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect MindsDB to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.