MCP server

A deep-learning environment for AI agents

Claude and other MCP clients design, check, train and compare neural networks in Brick DNN. You set the budget, approve what matters and keep readable PyTorch code.

Create a free account Connect an agent

How it works

  1. Connect the agent

    Add Brick DNN to Claude as a connector, or give another MCP client an API token. When you allow access, you decide whether the agent may change things or only read.

  2. The agent designs a network

    It looks up layer types and examples (list_layer_types, list_examples) and writes the network as a graph of bricks. Classical models such as gradient boosting, SVMs and Gaussian processes are built the same way.

  3. analyze_network explains shape errors

    It infers the output shape and parameter count of every layer. When two layers do not fit together, the error names the layer and the shapes involved, so the agent can fix the graph and check again instead of guessing.

  4. check_training catches data mismatches

    Before a run, it compares the network with the dataset. If only the Input or the last layer differ, for example 10 outputs for 3 classes, it returns the fix. It also estimates the CPU time and says whether the budgets allow the run.

  5. Training on the server, within a budget

    start_training runs the training on Brick DNN’s server in Switzerland. The agent follows it with get_training_run. A run that reaches its budget stops by itself and keeps its weights.

  6. Compare, export, publish

    list_training_runs lists the runs with their metrics, so the agent can tell you which one did better. You get readable PyTorch or scikit-learn code (generate_pytorch_code), the trained weights, or a model repository on the Hugging Face Hub.

The agent activity page: the calls an AI assistant made through the MCP server with an API token, such as analysing a network, reading a training run and generating code, each with its result and duration.
Agent activity: every call of a connected agent, with what it touched and how it went.

Connect your agent

The MCP server of brickdnn.com is at https://brickdnn.com/api/mcp/ (Streamable HTTP). You need a Brick DNN account; the agent signs in to it.

Claude (web, desktop and mobile)

Open Settings → Connectors → Add custom connector and paste the address. Claude then opens Brick DNN in the browser: log in, check which app is asking, choose full access or read only, and allow it.

https://brickdnn.com/api/mcp/

Claude Code

Add the server once:

claude mcp add --transport http brick-dnn https://brickdnn.com/api/mcp/

Then type /mcp in Claude Code and sign in in the browser.

Other MCP clients, with an API token

In Brick DNN, open the account menu → API tokens and create a token with full access or read only and an expiry. It is shown once. Clients that take remote servers with headers use:

{
  "mcpServers": {
    "brick-dnn": {
      "type": "http",
      "url": "https://brickdnn.com/api/mcp/",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

Connected apps and tokens are listed on the API tokens page. Disconnecting or revoking ends their access at once. The MCP documentation lists every tool.

What you can ask

Three requests and what the agent does with them.

  • Build a small CNN for Fashion-MNIST, make sure the shapes work and train it for ten epochs.

    It starts from the closest example, adapts the layers and calls analyze_network until every shape fits. check_training gives the estimated CPU time. Below your approval limit the run starts right away; above it, the agent waits until you approve. When the run has finished, it reports the accuracy per epoch.

  • Here is customers.csv. Predict the column churned and tell me whether gradient boosting beats a small MLP.

    It imports the file (import_data, or a one-time upload link for a larger file), sets up a data preparation, applies the fixes its readiness check proposes, such as filling missing values or encoding text columns, and exports a training dataset. Then it trains both models and compares their validation results.

  • Publish the best run to Hugging Face as a private repository.

    publish_to_huggingface asks for your approval first. On the Agent activity page you see the run, the repository, whether it will be public or private and the licence. Once you approve, the agent calls the tool again and the upload happens. Your Hugging Face token is used for that call only; Brick DNN does not store it.

Guard rails

An agent works with your account, so you decide how far it can go.

  • Approvals

    Trainings above a CPU limit you set, and anything that would make data or weights visible to others, wait for your approval on the Agent activity page. Unless you change it, trainings above 15 estimated CPU minutes and all publishing ask first. Deleting can ask too. An agent cannot approve its own requests.

  • Budgets per token and app

    Give each token or connected app a monthly CPU budget, on top of your plan and your own account budget. A token cannot raise its own budget; only you can, in the web app.

  • Read-only access

    A read-only token or app can look up layers, analyse networks, generate code and predict with trained networks, but cannot save, upload, train or delete anything.

  • Activity log

    Every tool call is listed with the token or app, what it touched, whether it worked and how long it took. Arguments are summarised; file contents and secrets are not stored.

  • Hosted in Switzerland

    Your files, trainings and weights are on a server in Geneva, and trainings run there. What the agent reads, for example rows of a dataset, also goes to the provider of the assistant you use.

  • Code you can read

    The generated PyTorch or scikit-learn script is plain code without Brick DNN in it. You can review what the agent built and run it anywhere.

Pricing

Connecting an agent is free, and on the free plan Free an agent may do what you may do in the web app: save networks, upload small datasets within your 0.5 GB of storage, start trainings within 1 CPU hour of compute per month and up to 15 CPU minutes per training, and predict with your trained networks. The same limits, approvals and budgets apply as in the web app. Paid plans, from Starter at €9 a month or €39 for 6 months, add more compute and storage, longer trainings, more trials per search, more people to share a network with and sharing comparisons of runs, for you and your agents alike.

Create a free account Plans and prices