How to Install and Use Exa MCP Server

Learn how to install and use the Exa MCP Server to enable AI assistants like Claude to perform web searches through Exa’s powerful AI search API.

Emmanuel Mumba

Emmanuel Mumba

27 April 2025

How to Install and Use Exa MCP Server

In the world of artificial intelligence , providing AI models with real-time, up-to-date information is crucial. To facilitate this, AI assistants like Claude can use the Model Context Protocol (MCP) server to access external tools and APIs, allowing them to search the web in real-time and retrieve structured results. This article walks you through the installation and usage of the Exa MCP server, which connects Claude Desktop to Exa’s powerful AI search API, enabling AI assistants to perform sophisticated web searches with ease.

💡
Looking for a smarter way to manage API testing while integrating AI tools like Claude? Apidog isn't just another API platform—it’s the bridge between your AI assistant and real-time web data. With Apidog's intuitive interface, you can mock, test, and document your MCP server endpoints in one place. Whether you're setting up the Exa MCP server or debugging API calls, Apidog makes the process seamless, visual, and dev-friendly.
button

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a framework designed to enable AI applications to interact with external data sources or services. It allows AI assistants, such as Claude, to communicate with local services or APIs, ensuring that the information used by these models is up-to-date and accurate. MCP provides a safe and standardized way to relay context, meaning that AI models can retrieve data from multiple sources without compromising privacy or security.

The MCP protocol allows AI models like Claude to integrate with tools that can perform tasks like web searches, data scraping, and even specific service requests in a standardized manner. For example, an MCP server can be configured to connect Claude to an API like Exa’s, which enables web searches, web scraping, and much more. With real-time web search abilities, Claude can assist users by providing the latest information directly from the web.

What Does the Exa MCP Server Do?

The Exa MCP server acts as a bridge between AI assistants (such as Claude) and Exa’s AI-powered web search capabilities. By setting up the Exa MCP server, you enable your AI assistant to:

By configuring this server, you open up new possibilities for your AI assistant, giving it access to real-time data that can be used for anything from answering user queries to performing research and analysis.

Prerequisites

Before you get started, there are a few things you need to ensure are in place. These prerequisites will help you avoid potential issues during installation and setup:

Node.js (v18 or higher): Make sure you have Node.js installed on your machine. You can check the version by running:

node --version

If you don’t have Node.js installed, visit the official Node.js website to download the latest version.

Claude Desktop Installed: Ensure that you have Claude Desktop set up and ready to go. Claude is an AI assistant that can be used for various tasks, including web searches, through integration with external servers like Exa MCP.

Exa API Key: You’ll need an API key from Exa to authenticate your requests. If you don’t have one, sign up on Exa’s dashboard to get your key.

Git Installed: Git will be required for cloning repositories during the manual installation process. You can verify if Git is installed by running:

git --version

Installation

Once the prerequisites are met, you can start installing the Exa MCP server. There are two main ways to install the server: via NPM or using Smithery. Let’s explore both methods.

1. NPM Installation

For a quick and easy setup, you can install the Exa MCP server globally using NPM. Run the following command:

npm install -g exa-mcp-server

This will install the Exa MCP server globally on your system, making it executable from any directory.

2. Using Smithery

Smithery is a tool that automates the installation of the Exa MCP server, making it even easier to set up. To install the server using Smithery, run the following command:

npx -y @smithery/cli install exa --client claude

This command automatically installs the necessary dependencies and configures the server for use with Claude.

3. Manual Installation

If you prefer to install the server manually or need more control over the installation process, you can follow these steps:

Clone the repository:

git clone https://github.com/exa-labs/exa-mcp-server.git

Navigate to the project directory:

cd exa-mcp-server

Install the dependencies:

npm install

Build the project:

npm run build

Create a global link to make the server executable from anywhere:

npm link

Configuration

Once the Exa MCP server is installed, you need to configure Claude Desktop to recognize the server and start using it. Here’s how to do it:

1. Configure Claude Desktop

First, enable Developer Mode in Claude Desktop:

Alternatively, you can open the configuration file directly via the terminal.

For macOS:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

For Windows:

code %APPDATA%\Claude\claude_desktop_config.json

2. Add the Exa Server Configuration

In the claude_desktop_config.json file, add the following configuration to tell Claude Desktop to use the Exa MCP server:

{
  "mcpServers": {
    "exa": {
      "command": "npx",
      "args": ["/path/to/exa-mcp-server/build/index.js"],
      "env": {
        "EXA_API_KEY": "your-api-key-here"
      }
    }
  }
}

Make sure to replace your-api-key-here with your actual Exa API key from the Exa dashboard.

3. Choose Tools to Enable

The Exa MCP server includes several tools that you can enable based on your needs. For example, if you want to use web searches, research paper searches, Twitter searches, and company research tools, you would modify the configuration like so:

{
  "mcpServers": {
    "exa": {
      "command": "npx",
      "args": [
        "/path/to/exa-mcp-server/build/index.js",
        "--tools=web_search,research_paper_search,twitter_search,company_research,crawling,competitor_finder"
      ],
      "env": {
        "EXA_API_KEY": "your-api-key-here"
      }
    }
  }
}

This setup will enable all available tools for the server.

4. Restart Claude Desktop

For the changes to take effect, you need to restart Claude Desktop:


Once the Exa MCP server is configured and connected, you can start using it for web searches. Here are some example prompts you can use with Claude:

Testing with MCP Inspector

You can test the server’s functionality using the MCP Inspector. This tool allows you to interactively explore the server and execute search queries.

Run the following command to start the MCP Inspector:

npx @modelcontextprotocol/inspector node ./build/index.js

This will open an interactive interface where you can test different search queries, inspect the results, and explore the available tools.

Enhance Your AI Automation with Apidog MCP Server Integration
Take your AI-driven workflows even further by integrating with the Apidog MCP Server.

This powerful connection allows your AI assistant to interact directly with API specifications from Apidog projects, enabling seamless API exploration, code generation, and structured model creation.

Troubleshooting

While setting up the Exa MCP server is generally straightforward, you might run into some common issues. Here are some tips to resolve them:

1. Server Not Found

If the server isn’t found, ensure that the npm link is correctly set up and that the configuration in Claude Desktop is correct. Double-check the paths in your configuration file.

2. API Key Issues

If there’s an issue with the Exa API key, confirm that the key is valid and correctly set in the claude_desktop_config.json file. Ensure that there are no extra spaces or quotes around the API key.

3. Connection Issues

If you’re experiencing connection issues, try restarting Claude Desktop completely. Check the logs for any errors:

For macOS:

tail -n 20 -f ~/Library/Logs/Claude/mcp*.log

For Windows:

type "%APPDATA%\Claude\logs\mcp*.log"

Conclusion

Setting up the Exa MCP server opens up powerful new possibilities for your AI assistant, enabling it to perform real-time web searches using Exa’s search API. With an easy-to-follow installation process, clear configuration steps, and robust functionality, the Exa MCP server makes it simple for AI models like Claude to access the latest information and provide users with relevant, up-to-date results. Whether you're researching academic papers, performing company analysis, or keeping up with the latest news, the Exa MCP server ensures that your AI assistant is always equipped with fresh, actionable data.

Explore more

15 Best Open-Source RAG Frameworks in 2025

15 Best Open-Source RAG Frameworks in 2025

Large Language Models (LLMs) are revolutionary, but they have a fundamental limitation: their knowledge is frozen in time, limited to the data they were trained on. They can't access your private documents, query real-time data, or cite their sources. This is where Retrieval-Augmented Generation (RAG) comes in. RAG is the architectural pattern that gives LLMs a superpower: the ability to retrieve relevant information from external knowledge bases before answering a question. This simple but pow

6 June 2025

Stagehand Review: Best AI Browser Automation Framework?

Stagehand Review: Best AI Browser Automation Framework?

Browser automation has long been a cornerstone of modern software development, testing, and data extraction. For years, frameworks like Selenium, Puppeteer, and more recently, Playwright, have dominated the landscape. These tools offer granular control over browser actions, but they come with a steep learning curve and a significant maintenance burden. Scripts are often brittle, breaking with the slightest change in a website's UI. On the other end of the spectrum, a new wave of AI-native agents

6 June 2025

15 Best Browser Automation Tools for Web Testing and Scraping in 2025

15 Best Browser Automation Tools for Web Testing and Scraping in 2025

The world of web automation is in the middle of a seismic shift. For years, the landscape was dominated by powerful-but-complex frameworks that demanded deep coding knowledge. Today, a new generation of AI-driven tools is emerging, promising to make automation more intuitive, resilient, and accessible than ever before. In 2025, the best tool is no longer just about having the most features; it's about providing the right balance of control, flexibility, and intelligence for the task at hand. Wh

6 June 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs