# How do I add any MCP server to Irene?

**Paste it in. Capabilities → Tools → Connect something → Your own takes a whole Claude Desktop `mcpServers` block, a launch line like `npx @scope/server`, or a web address. Irene starts the server or reaches it, signs in if it needs to, and turns every tool it offers into a toolkit any chat can use. Your computer talks to the server directly, with no middleman, so internal and private servers work too. Like an app, a server is connected once and attached per chat, so its tools cost nothing in the chats that don't use them.**

When to use this: the server isn't in Composio's catalogue or the MCP registry, it's one you or your team run, or you already use it in Claude Desktop. For a server someone has published in the MCP registry, search for it under **Apps & servers** instead: it comes with its settings filled in. Smithery's hosting shut down on Oct 31, 2026; servers you connected through it show as stopped in Tools. For common apps, [connect an app](https://mycelen.com/manual/guides/connect-an-app).

---

## Worked example: three real servers

### 1. A server at an address: DeepWiki

> *"How does this open-source library handle retries? Check its docs."*

1. **Capabilities → Tools → Connect something → Your own.** The box reads "runs on your machine, your keys".
2. Paste the address: `https://mcp.deepwiki.com/mcp`. Press **Add & connect**.
3. Irene connects, asks the server what it offers, and lists the result: **deepwiki**, 3 tools (`ask_wiki_question`, `read_wiki_structure`, `read_wiki_contents`).
4. Type **`@deepwiki`** in the chat. The agent can now read a library's wiki or ask it a direct question, and answer from the docs instead of from memory.

An address ending in `/sse` is connected the older way (SSE); any other address uses the current one (streamable HTTP). You don't choose.

### 2. A server that brings its own cards: market_quotes

Arian's **market_quotes** server has 3 tools (quotes, price history, a market snapshot), and each has an interactive card. Ask for a quote and the result appears as a card, not raw numbers. The server needs a key, which is kept in its config on your computer. → [Tool UI](https://mycelen.com/manual/reference/toolkits/tool-ui)

### 3. A big local server: Apple Notes, and the slice

A local Apple Notes server offered **83 tools**: create, search, move, export, tag, transcribe…

- **Too big to attach whole.** Above 15 tools, the agent can't hand the chat everything. The refusal lists every tool name, so the agent picks the few it needs: `apple-notes:search-notes,get-note-content,create-note`.
- **Why the refusal names the tools:** an early version only stated the rule ("too many tools"), and the run dead-ended because the agent had no way to learn the names. A refusal that hands over the next step gets used.
- **Why slice at all:** 83 tool descriptions in front of a small, fast model, on every turn, would cost more than the job and make it pick worse.

---

## What you can paste

| paste | example | what Irene does |
|---|---|---|
| a whole Claude Desktop block | `{"mcpServers": {"fs": {"command": "npx", "args": [...]}, …}}` | adds **every** server in it, and reports each one separately |
| a launch line | `npx @modelcontextprotocol/server-filesystem ~/Documents`, `uvx …`, `bunx …`, `docker …`, `python3 …` | runs it on your computer |
| a package name | `@scope/server` | runs it with the right launcher |
| a web address | `https://…/mcp` | connects to it directly |

**Why paste the whole block:** that's the format people already have. "Your Claude Desktop config works here as it is." Nothing to translate, and one paste moves every server across.

**From a chat:** **`/mcp`**, or `/mcp <name, address or config>`, opens the same box with what you typed already in it.

A paste can partly succeed. The result says exactly what happened: "2 servers added.", "Nothing was added. 1 server could not connect.", or "2 servers added. 1 could not connect.", with each server's own error.

---

## How it works

- **Local servers** (a launch line) run on your computer from runtimes that ship with Irene, so there's nothing to install. They **start on first use** and **stop after 10 minutes idle**. A slow start is tried up to 4 times.
- **Their tools are remembered.** Irene keeps a copy of each server's tool list, so the tools are ready the moment Irene starts, before any server is running. **Why:** starting every server at launch just to learn its tools would slow Irene down and run programs you aren't using.
- **Remote servers** are reached directly. If one needs a sign-in, its row shows **authorizing…** and **Open sign-in**. Irene registers itself with the server and completes a standard OAuth sign-in in your browser. **Why directly:** your login for that server is never handed to a broker.
- **Every tool becomes a typed tool** with the inputs the server declares, the same as Irene's own. Tools that return an interactive view show it in the chat card.
- **When a server fails to start,** Irene keeps the end of what it printed, and shows you the part that explains the failure, not just "failed".

---

## Lifecycle

| stage | what happens |
|---|---|
| **Added** | saved in `~/.irene/mcp_servers.json`. Its row shows the name, how it connects, `mcp_<name>`, its state and number of tools |
| **Attached** | `@name` in a chat, or the agent's `equip attach`. Big servers come as a slice |
| **Idle** | a local server stops after 10 minutes and restarts on the next call |
| **Broken** | the row shows the server's error. **Reconnect** tries again |
| **Removed** | the bin icon. Its sign-in token is deleted with it |

---

## If something goes wrong

| you see | what it means |
|---|---|
| "This server is listed but is not running, so there is nothing to connect to." | the address answered "not found" |
| "It refused the sign-in. Try connecting again." | the server rejected the login or key |
| "The server is up but answered with an error. It may work later." | the server itself had a problem |
| "It did not answer in time." | too slow, or the address is wrong |
| "It needs configuration before it can start." | a key or setting the server needs is missing from its config |
| a registry result with a reason instead of a button | Irene won't run it as listed (for example, it asks Docker for access to your whole computer). Look for the same server from its maker, or paste a launch line you trust under **Your own** |

---

## Keys and privacy

- **Keys you give a server** (in its `env` or `headers`) are stored in its config in `~/.irene`, on your computer. A `${VAR}` in the config is filled from your environment when it connects, and the file keeps only the `${VAR}`.
- **Sign-in tokens** are kept in `~/.irene/auth/`, one file per server, and deleted when you remove it.
- **Keys are never shown back:** the add result and the rows show the command and address, never the `env` values.
- **Local servers run in their own process,** with Irene's own keys stripped from what they can see.
- **Shared plugins never carry your server keys.** A server packed into a plugin goes without its `env` and `headers`; whoever installs it adds their own.

---

## Approvals

- **Adding a server is you pressing Add & connect.** When the agent connects or attaches one itself, it asks, even in auto mode.
- **Each tool call** goes through the normal approval gate, like any tool: it asks unless you've trusted it, and in auto mode it's judged by what it does.
- **Irene's MCP settings file is off-limits to auto mode.** **Why:** a server is a program that runs on your computer, so only you can add one.

---

## What it costs

- **Free to add, no plan limit.** Calls to your own servers cost nothing beyond the model's usage. (A server may have its own charges.)
- **Attached tools** add their descriptions to every turn of that chat, which is why they're attached per chat and sliced.

---

## Limits

- **15 tools per whole attach;** bigger servers are sliced.
- **MCP prompts and resources** aren't browsed. Tools are, and so are the interactive views tools return.
- **Your own servers are on your computer.** A deployed agent gets them only when they're added to it; each visitor then connects with their own keys.

---

## Related

- [Equip & connectors](https://mycelen.com/manual/reference/toolkits/equip-and-connectors) · [Connect an app](https://mycelen.com/manual/guides/connect-an-app) · [Which way to extend Irene](https://mycelen.com/manual/reference/connect/overview)
- [Tool UI](https://mycelen.com/manual/reference/toolkits/tool-ui) · [Build your own toolkit](https://mycelen.com/manual/reference/toolkits/build-your-own-toolkit) · [Plugins](https://mycelen.com/manual/reference/toolkits/plugin)

[Ask Irene about this]
