Start free →
Guides

How to add an MCP server to an AI assistant

How to add an MCP server to an AI assistant: a practical, step-by-step guide with a worked example and a checklist.

Updated 2026-11-25 · 2 free searches, no card · $0.0025 per look-alike

Quick answer

To add an MCP server to an AI assistant, find the server's URL or launch command, open the assistant's connector or MCP settings, add the server, authenticate with OAuth or an API key, then confirm the tools are listed and run one test call. For SimilarIQ the server is hosted at https://similariq.ai/mcp, so there is nothing to install locally.

The goal: give your assistant a tool it can call

An AI assistant on its own can only work from what it already knows and what you paste into the chat. The Model Context Protocol, or MCP, is a standard way to hand the assistant tools: named functions with typed inputs that it can call during a conversation to fetch data or take an action. An MCP server is the program that publishes those tools.

Adding a server is a configuration task, not a coding task. You tell the assistant where the server lives and how to prove who you are. After that, the assistant reads the list of tools and decides when to call them based on what you ask. The Model Context Protocol glossary entry covers the concept in more depth.

The steps below work for any server and any assistant that supports MCP. Menu names differ between products and change often, so this guide describes what to look for instead of exact click paths.

What you need before you start

First, confirm that your assistant supports MCP on the plan and surface you use. Support can differ between a desktop app, a web app and a coding tool from the same company, and some organizations restrict who may add connectors. If you are on a managed workspace, you may need an administrator to enable the server for you.

Second, know what kind of server you are adding. A remote server is hosted by the provider and reached over HTTPS at a URL. A local server runs as a process on your own machine and is started by a command. Remote servers are simpler to add and work across devices. Local servers can reach files and tools on your computer but need a runtime installed.

  • An assistant or coding tool that supports MCP
  • The server URL (remote) or launch command (local)
  • An account with the provider, plus an API key if the server needs one
  • Permission to add connectors, if your workspace is managed
  • A short test prompt you can verify by eye

Step 1: Find the server address and transport

Open the provider's documentation and find the MCP page. For a remote server you are looking for a single HTTPS URL and the transport it speaks. Streamable HTTP is the common transport for hosted servers. For a local server you are looking for a command and its arguments, which the assistant will run for you each time it starts.

Note the authentication method too. Remote servers usually offer OAuth, where the assistant sends you to the provider's sign-in page and you approve access, or a static API key sent in a request header. Some offer both. OAuth is preferable in chat assistants because no secret is pasted into a settings field. A remote MCP server entry explains the hosting model.

Step 2: Add the server in your assistant

Chat assistants typically keep this under a settings area named something like connectors, integrations, apps or tools. Look for an option to add a custom connector or custom MCP server, give it a name, and paste the URL. Save, and the assistant will start the authentication flow if the server requires one.

Coding tools usually read servers from a JSON configuration file or a command. The file contains an object of named servers, each with a type and a URL for remote servers, or a command and arguments for local ones. Many tools support both a per-user file and a per-project file. Put shared, non-secret configuration in the project and keep keys in your own user settings or an environment variable.

Restart or reload the assistant if the new server does not appear. Some clients only read their configuration at startup.

Step 3: Authenticate and review the permissions

With OAuth, a browser window opens on the provider's site. Sign in, read the consent screen, and approve. Check that the page is on the provider's real domain before you enter anything. The assistant receives a token scoped to that server and refreshes it for you.

With an API key, create a key in the provider's dashboard and add it as a header in the server configuration. Treat it like a password. Do not commit it to a repository, do not paste it into a chat message, and create a separate key per tool so you can revoke one without breaking the others.

Most assistants ask how much freedom to give each tool: ask every time, allow always, or block. Start with ask every time for any tool that spends money or changes data, and allow read-only tools freely.

Step 4: Verify the tools and run a test

Open the server entry in your assistant and check that tools are listed with names and descriptions. If the list is empty, authentication probably failed or the URL is wrong. Then ask the assistant a question that can only be answered by calling a tool, and watch for the tool call in the response.

Pick a cheap, read-only test first, such as a balance or status check. That confirms the connection without spending anything. Then run one real call and compare the output with what the provider's own app shows for the same input. If the two agree, the setup is done.

A worked example: adding SimilarIQ

SimilarIQ's MCP server is hosted at https://similariq.ai/mcp. It uses streamable HTTP and is stateless, so there is no local process, no npx command and no Docker container. It works with Claude, ChatGPT, Grok, Perplexity, Claude Code, Cursor and any other MCP client. Authentication is OAuth 2.1 with a SimilarIQ sign-in and consent screen, or an API key header for clients that only accept a static header.

In a client that reads JSON configuration, the entry is {"mcpServers":{"similariq":{"type":"http","url":"https://similariq.ai/mcp"}}}. For key authentication, add "headers":{"X-API-Key":"sk-live-..."} inside the similariq object. In Claude Code, one command does it: claude mcp add --transport http similariq https://similariq.ai/mcp. Setup pages exist for Claude, Claude Code, Cursor and ChatGPT.

The server exposes 10 tools. Two spend credits: find_similar_companies costs 1 credit, which is $0.25, and start_bulk_search costs 1 credit per domain. The other eight are free, including get_search_balance, list_recent_searches and get_search_results. A sensible first test is to ask the assistant to check your SimilarIQ balance, then ask it to find companies similar to a domain you know well. A search takes roughly 30 to 60 seconds. New accounts get 2 free searches with no credit card.

Doing the same job without MCP

MCP is not the only way to connect an assistant to a service. If your assistant can run code or shell commands, it can call a REST API directly or use a command-line tool. That route needs no connector support, but you have to describe the API to the assistant or point it at documentation, and you manage the key yourself.

For SimilarIQ, the non-MCP route is a POST to https://similariq.ai/api/v1/search with a JSON body containing a domain, or the CLI command similariq search stripe.com --json. The same sk-live- key works for the REST API, the SDKs, the CLI and the MCP server, and all of them draw on one balance at the same price. API vs MCP server explains when each fits.

Common mistakes and troubleshooting

Most failures come from a short list of causes. The URL has a typo or a missing path. The client expects a different transport than the server speaks. The key was pasted with a trailing space. The client was not restarted. Or a workspace policy blocks custom connectors and the error message does not say so clearly.

A second class of problems appears after setup. Too many connected servers can crowd the assistant with tool descriptions and make it pick the wrong one, so disable servers you are not using. Auto-approving a paid tool can produce a bill you did not expect. And connecting a server you do not trust exposes your conversation to whatever its tool descriptions and outputs say, so add servers only from providers you would give an API key to.

  • Tools not listed: recheck the URL, then re-run authentication
  • 401 errors: the key is missing, wrong or revoked
  • 402 from SimilarIQ: the balance is empty; add funds
  • 429: you are rate limited; slow down and retry
  • 502 from SimilarIQ: the search failed and the credit was refunded; retry
  • Server missing after editing a config file: restart the client

Checklist

Run through this list each time you add a server. It takes a few minutes and prevents most of the problems above. When you no longer need a server, remove it in the assistant and revoke its access on the provider side. SimilarIQ users can disconnect any connected assistant from their account page.

  • Assistant and plan confirmed to support MCP
  • Server URL or command copied from official documentation
  • OAuth chosen where available; keys stored outside the repository
  • Paid or write tools set to ask before running
  • Tool list visible and a read-only test passed
  • One real call checked against the provider's own app
  • Unused servers disabled
  • Removal and revocation steps known

Frequently asked questions

What is an MCP server?

An MCP server is a program that publishes tools an AI assistant can call, using the Model Context Protocol. Each tool has a name, a description and typed inputs. The assistant reads the list and decides when a tool will help answer your request.

What is the difference between a remote and a local MCP server?

A remote server is hosted by the provider and reached at an HTTPS URL, so there is nothing to install. A local server runs as a process on your own computer, started by a command in your assistant's configuration. Remote is simpler; local is needed when the tools must reach files or programs on your machine.

Do I need to write code to add an MCP server?

No. In chat assistants you paste a URL into a settings screen and sign in. In coding tools you add a few lines of JSON or run one command. Writing code is only required if you are building a server yourself.

Is it safe to connect an MCP server to my assistant?

It is as safe as the provider and the permissions you grant. Add servers only from sources you trust, prefer OAuth over pasted keys, require approval for tools that spend money or change data, and remove servers you no longer use.

Why are the tools not showing up after I added the server?

The usual causes are a wrong URL, failed authentication, a client that needs restarting or a workspace policy that blocks custom connectors. Recheck the address against the provider's documentation and run the sign-in flow again.

How do I add the SimilarIQ MCP server?

Add https://similariq.ai/mcp as a remote HTTP server in your assistant, then sign in through the OAuth screen or supply an API key header. In Claude Code the command is claude mcp add --transport http similariq https://similariq.ai/mcp. Nothing is installed locally.

Does using an MCP server cost extra?

The protocol itself is free; costs depend on the provider. With SimilarIQ, MCP tool calls draw on the same pay-as-you-go balance as the app and API: a search is 1 credit, or $0.25, and eight of the ten tools are free to call.

One website in. 100 look-alikes out.

2 free searches on signup, no card. Then $0.0025 per look-alike, with no subscription, no seats and no contract.