AI agents and MCP: giving an agent toolsMCP servers: what they are and how to connect one

AI agents and MCP: how to give an agent tools

The short version: an AI agent is a model that does not simply answer but carries out steps by itself — searches, calls tools, checks the result and decides what to do next. MCP is the standard way to give an agent those tools. The application that connects to MCP servers and runs that loop is called an MCP client. Below: how it is put together, and three ways to build an agent of your own.

Chat, agent and MCP client — what the difference is

What it doesExample
ChatAnswers a message with text, in one stepA model with no tools
AgentPlans and executes several steps: calls tools, reads the result, carries on until the task is done"Find three recent reviews, compare the prices and make a table"
MCP clientA program that connects to MCP servers, shows their tools to the model and executes the callsClaude, Cursor, Codex, OpenCode, LM Studio, n8n
MCP serverHands over tools: search, generation, access to a servicehttps://twelver.app/api/mcp/v1/web-search

The thing worth remembering: what makes a model an agent is not MCP but the loop around it. MCP is only responsible for that loop having hands — and for not having to sew them back on for every new application. More on the protocol itself is in the overview of MCP servers, and more on agents in general, with no MCP in sight, in the guide to AI agents.

How an agent works with tools

  1. The agent receives a task and sees a list of tools with their descriptions.
  2. It decides which tool is needed first and calls it — for example web-search.
  3. It reads the result and decides again: if the data is enough, it answers; if not, it calls web-crawl on the best link, or another tool.
  4. It repeats until the task is solved and returns the outcome: text, a table, a picture, a file.

Fewer tools, smarter agent

An agent picks a tool by its description, and every description takes up room in the context. Five precise tools for the task work better than fifty just in case: the model gets confused less often, and every step costs less.

Route 1. An agent in Claude, Cursor or Codex

The quickest path: these clients already are agents. Connect MCP servers and Claude starts searching the web by itself, Cursor reads the documentation before editing code, and Codex checks against the changelog. Step by step: Claude, Cursor, Codex, OpenCode.

This suits you when the agent is for you personally and interactive: you set a task, watch, correct.

Route 2. An agent in n8n

If the agent has to work on its own — on a schedule, on an incoming email, on a new CRM lead — it gets built inside an automation system. In n8n there is an AI Agent node for that, with a model and tools attached to it. An MCP server is added as a tool through the MCP Client Tool node: you give it the server address and the sign-in method — for key-based servers, the Authorization: Bearer … header.

The reverse also works: the MCP Server Trigger node turns an n8n workflow into an MCP server, which can then be connected to Claude or Cursor. That is how your internal processes — an export from CRM, sending an invoice — become an agent's tools.

Route 3. A ready agent chat, no config files

If you want an agent without JSON and a terminal, you can assemble one in Twelver. The same 26 sets of tools that are available as MCP servers are enabled here with checkboxes in the agent editor — search, image and video generation, voice-over, documents, presentations. And there is something here a plain MCP client does not have:

  • Memory — the agent remembers facts between chats and keeps its own archive of material.
  • Self-scheduling — the agent runs itself later, once or on a schedule, and sends you the result.
  • Knowledge — documents attached to the agent, which it answers from.
  • Teams of agents — a lead agent hands tasks to subagents; available on the Premium plan.

Tick the tools below and press "Try it live" — the agent editor opens with that set already chosen.

No keys: paste the URL into your client and sign in — Claude, Cursor and any other OAuth client.

1

Copy the connector URL

2

Paste it into your MCP client

3

Sign in via OAuth — done


Build your server

Check the tools — URLs and config update themselves.


Connector URLs

Image Generation (Nano Banana)

https://twelver.ru/api/mcp/v1/image-generation

Web Search

https://twelver.ru/api/mcp/v1/web-search

Documents

https://twelver.ru/api/mcp/v1/document
{
  "mcpServers": {
    "twelver-image-generation": {
      "url": "https://twelver.ru/api/mcp/v1/image-generation"
    },
    "twelver-web-search": {
      "url": "https://twelver.ru/api/mcp/v1/web-search"
    },
    "twelver-document": {
      "url": "https://twelver.ru/api/mcp/v1/document"
    }
  }
}

The same mcp.json works in LM Studio, Windsurf, Cline, VS Code and any client that reads an mcp.json.

Which route to choose

The taskThe route
A helper in code or in text work, here and nowClaude, Cursor, Codex + MCP servers
An agent that reacts to events in other services by itselfn8n: AI Agent + MCP Client Tool
An agent with memory and a schedule, without setupThe Twelver agent chat
A local model, with data never leaving the computerLM Studio + MCP
You need a tool of your own that does not exist yetWrite your own MCP server

Frequently asked questions

What is an MCP agent?
That is what people call an AI agent that receives its tools over the MCP protocol. The agent itself is a model in a loop: it plans steps, calls tools, reads the results and carries on until the task is solved. MCP gives that loop standard access to search, generation, files and services.
What is an MCP client?
An application that connects to MCP servers, passes the model a list of their tools and executes the calls. Claude, Cursor, Codex, OpenCode, LM Studio, VS Code and n8n are all MCP clients.
How do I connect MCP to n8n?
Add an AI Agent node, attach a model and an MCP Client Tool node to it. In the MCP Client Tool, give the address of the remote MCP server and the sign-in method — for key-based servers, the Authorization: Bearer header. To go the other way and expose an n8n workflow as an MCP server, use the MCP Server Trigger node.
Which AI models support MCP?
It is not the model that supports MCP but the application around it. Any model trained to call functions can work with tools — Claude, GPT, Gemini, Qwen, GLM, DeepSeek and others. The servers are connected by the client: Claude, Cursor, Codex, LM Studio, n8n.
Can I build an AI agent without programming?
Yes. In Claude and Cursor it is enough to connect MCP servers; in n8n an agent is assembled from nodes with the mouse; and in the Twelver agent chat the tools, the memory and the self-scheduling are switched on with checkboxes in the agent editor.

Try it yourself

Everything in this guide runs inside Twelver

One chat for text, images, video, music and voice — no separate services or subscriptions.

Open Twelver chat
Rate your experience