# Connect a service through Composio

Reach a service with no MCP server of its own through Composio. Register the MCP address Composio gives you in Amiril, then grant its tools.

A connector platform such as Composio stores your account's login for a service and gives you an MCP address for it. Register that address in Amiril as a tool server, and the service's tools show up under **Tools** like any other server's. Other platforms that give an HTTPS MCP address work the same way. If no platform covers the service, [wrap its API as a tool server](/tool-servers/wrap-an-api) yourself.

## Set up the server in Composio [#set-up-the-server-in-composio]

<Steps>
<Step>
Create an MCP server in Composio for the toolkit you need, from its dashboard or its SDK. Choose the actions your agents may use as its allowed tools. Each action becomes its own tool, so Amiril can grant them one at a time.
</Step>

<Step>
Generate the server's URL for one Composio user ID, and connect that user's account at the service. The agents act as that account. [Composio's MCP guide](https://docs.composio.dev/docs/single-toolkit-mcp) shows both steps. Copy the URL.
</Step>

<Step>
Get an API key for your Composio project. Composio checks it in the `x-api-key` header of each request to the server.
</Step>
</Steps>

## Register it in Amiril [#register-it-in-amiril]

<Steps>
<Step>
Open **Tools** and select **Add server**. Paste the Composio URL into **Server URL**.
</Step>

<Step>
Under **Sign-in**, choose **API key or token**. Set **Header name** to `x-api-key` and enter the Composio API key in **Key or token**, with no `Bearer` in front. Under **Details**, set **Type** to **External**. [Connect an MCP server with an API key](/tool-servers/key) explains each field.
</Step>

<Step>
Select **Test connection** and check each tool's **Access**. A tool that sends no hints about what it does to data arrives as **Write**. Set a tool that only reads to **Read**, and one that deletes data to **Destructive**. Then select the button that adds the tools, such as **Add 2 tools**.
</Step>
</Steps>

Next, [grant the tools to an agent](/agents/access).

## Next steps

- [Add a tool server](https://docs.amiril.ai/tool-servers.md): Register the MCP server where your agents' tools live and choose how Amiril signs in to it. Then grant its tools to agents on their Access tab.
- [Connect an MCP server with an API key](https://docs.amiril.ai/tool-servers/key.md): Register a tool server that takes a fixed API key or token in a header. You enter the key once in Amiril, and the gateway adds it to every call.
- [Wrap an API as a tool server](https://docs.amiril.ai/tool-servers/wrap-an-api.md): Put a small MCP server in front of an API that has none, so you can grant its actions to your agents as tools. About sixty lines of TypeScript.
- [Move an in-process tool to a tool server](https://docs.amiril.ai/tool-servers/move-a-tool.md): Take a tool function and its API key out of your agent and put them on a tool server behind the Amiril gateway. The agent keeps one gateway token.

## More detail

- [Tool servers, the gateway and agent access](https://docs.amiril.ai/assistant/tool-servers.md): Everything about registering MCP tool servers, the four sign-in methods, the Amiril gateway, tool grants, gateway tokens, sync, the access log, access suggestions and their errors.
- [HTTP API: access](https://docs.amiril.ai/assistant/api/access.md): The access routes of Amiril's HTTP API: 16 operations, each with its parameters, request body, responses and token access.
