# MCP servers

Give the AI new tools by connecting MCP servers, from the catalog or your own, local or remote.

MCP (Model Context Protocol) servers connect outside services to the AI. Once connected, the AI can use the tools a server offers, such as reading issues, searching docs or querying analytics.

The connectors list, with the filters and categories on the left and the services you can open.

## What you can do

- Connect a server from the Connectors catalog.
- Choose who can use each connection: only this project, your projects or the whole workspace.
- Add your own server, with a remote address or a local command.
- Connect with a sign-in, a key or a token.
- Check a server's state and tools, reconnect it, or read its connection log.
- Turn a server on or off in a project.

## Catalog

Open the **+** menu of the chat and choose **Connectors**. Each connector in the catalog has its own guide: see [Connectors](/integrations/connectors).

The catalog lists ready-made connectors in categories: developer tools, project management, analytics, payments, online stores, content and media, automation, and notes and search. Examples include Sentry, Notion, Linear, PostHog and Context7.

**Included**, in the same window, lists what Lyna already provides: **Lyna Cloud**, **Lyna Storage**, **Payments**, **GitHub** and **Shopify**. A row there opens the page that runs the service, so it needs no connector. [Figma](/integrations/figma) is built in too, with its own import.

## Connect a server from the catalog

1. ### Open Connectors

   Open the **+** menu of the chat and choose **Connectors**.
2. ### Pick a connector

   Pick a category on the left, then a connector to open its page. It shows what the connector asks for and who uses it.
3. ### Connect it

   Choose **Connect**. The **New connection** page opens and says what it needs: a sign-in, a key, an address, or nothing. Fill it in and choose **Connect** at the bottom of the page. **More options**, on the connector's page, holds the other ways to connect and the advanced settings.
4. ### Choose who can use it

   **Who can use it** gives three answers: **Only this project**, **My projects** and **The whole workspace**. See [Who can use a connection](/integrations/connectors#who-can-use-a-connection) for what each one means.

## Add your own server

In **Connectors**, choose **Add custom**, then **Custom server**. Then:

| Field                            | Local command                     | Remote address                            |
| -------------------------------- | --------------------------------- | ----------------------------------------- |
| **Server name**                  | A short name, such as `My server` | Same                                      |
| **Command** / **Server address** | The command, such as `npx`        | The server's address                      |
| **Arguments**                    | For example `-y my-server`        | Not used                                  |
| **Environment variables**        | The keys your command reads       | Not used                                  |
| **How it signs in**              | Not used                          | **Sign in**, **Key or token** or **None** |

**Remote address** and **Local command** are under **Advanced**, in **How to reach it**. A local server runs in the project's cloud machine, never on your computer. Choose **Add and test**.

> [!WARNING]
>
> **Keep secrets safe**
>
> Tokens and API keys give access to your accounts. Only add servers you trust, and use a token with the smallest access it needs.

## Server status

A server's page shows its state: **Not tested yet**, **Testing**, **Connected**, **Needs sign-in**, **Needs a key**, **Connection failed**, **New tools to review** or **Turned off**. **Enabled** in the left list shows the connectors you already use, and **More options** on a server's page holds its other actions.

## Turn servers on or off from the chat

Type `/mcp` in the chat to see your servers and switch them on or off without leaving the conversation.

## Related

- [Connectors](/integrations/connectors): What each connector can do and how to connect it.
- [Integrations](/integrations): Every service you can connect to Lyna.
- [Skills](/features/ai/skills): Teach the AI how to use your tools.
- [Slash commands](/features/ai/slash-commands): Use /mcp and more.
