概覽
什麼是 Exa MCP 伺服器?
Exa MCP 伺服器是一個強大的網頁搜尋 API,旨在促進模型上下文協議 (MCP)。它作為各種應用程式與網路上豐富資源之間的橋樑,允許開發者無縫地將搜尋功能整合到他們的專案中。Exa MCP 伺服器是開源且公開可用的,對於希望增強其應用程式搜尋能力的開發者來說,是一個絕佳的選擇。
Exa MCP 伺服器的特點
- 網頁搜尋 API:提供全面的網頁搜尋 API,使應用程式能夠快速有效地檢索相關資訊。
- 模型上下文協議:實現模型上下文協議,允許結構化數據的檢索和交互。
- 開源:作為開源軟體,開發者可以參與其開發,根據需求進行自定義,並受益於社群支持。
- 可擴展性:設計用於處理大量請求,適合小型和大型應用程式。
- 使用者友好的文檔:附帶廣泛的文檔,幫助開發者有效理解和實施 API。
如何使用 Exa MCP 伺服器
- 安裝:從 GitHub 克隆庫並按照文檔中提供的安裝說明進行操作。
- 配置:設置必要的配置,包括 API 金鑰和端點設置,以根據您的具體需求調整伺服器。
- 整合:使用 API 端點將搜尋功能整合到您的應用程式中。這可能涉及發送 HTTP 請求以根據用戶查詢檢索搜尋結果。
- 測試:徹底測試整合,以確保搜尋功能按預期工作並提供準確的結果。
- 部署:測試完成後,將整合了 Exa MCP 伺服器的應用程式部署,以便用戶使用。
常見問題
我可以使用哪些程式語言與 Exa MCP 伺服器?
Exa MCP 伺服器可以與任何支持 HTTP 請求的程式語言整合,包括但不限於 JavaScript、Python、Java 和 Ruby。
使用 Exa MCP 伺服器是否需要費用?
不需要,Exa MCP 伺服器是開源且免費使用的。然而,如果您在雲服務上部署它或需要額外資源,可能會產生費用。
我該如何為 Exa MCP 伺服器做出貢獻?
您可以通過分叉庫、進行改進並提交拉取請求來貢獻。此外,報告問題和建議功能也是幫助社群的好方法。
我可以在哪裡找到 Exa MCP 伺服器的文檔?
文檔可在 GitHub 的庫中找到。它包括安裝說明、API 使用範例和配置細節。
我可以將 Exa MCP 伺服器用於商業專案嗎?
可以,因為它是開源的並且根據 MIT 許可證授權,您可以在商業專案中使用 Exa MCP 伺服器而不受任何限制。
詳細
Exa MCP Server 🔍
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Remote Exa MCP 🌐
Connect directly to Exa's hosted MCP server (instead of running it locally).
Remote Exa MCP URL
https://mcp.exa.ai/mcp?exaApiKey=your-exa-api-key
Replace your-api-key-here
with your actual Exa API key from dashboard.exa.ai/api-keys.
Claude Desktop Configuration for Remote MCP
Add this to your Claude Desktop configuration file:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.exa.ai/mcp?exaApiKey=your-exa-api-key"
]
}
}
}
NPM Installation
npm install -g exa-mcp-server
Using Smithery
To install the Exa MCP server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install exa --client claude
Configuration ⚙️
1. Configure Claude Desktop to recognize the Exa MCP server
You can find claude_desktop_config.json inside the settings of Claude Desktop app:
Open the Claude Desktop app and enable Developer Mode from the top-left menu bar.
Once enabled, open Settings (also from the top-left menu bar) and navigate to the Developer Option, where you'll find the Edit Config button. Clicking it will open the claude_desktop_config.json file, allowing you to make the necessary edits.
OR (if you want to open claude_desktop_config.json from terminal)
For macOS:
- Open your Claude Desktop configuration:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
For Windows:
- Open your Claude Desktop configuration:
code %APPDATA%\Claude\claude_desktop_config.json
2. Add the Exa server configuration:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": ["-y", "exa-mcp-server"],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}
Replace your-api-key-here
with your actual Exa API key from dashboard.exa.ai/api-keys.
3. Available Tools & Tool Selection
The Exa MCP server includes the following tools, which can be enabled by adding the --tools
:
- web_search_exa: Performs real-time web searches with optimized results and content extraction.
- research_paper_search: Specialized search focused on academic papers and research content.
- company_research: Comprehensive company research tool that crawls company websites to gather detailed information about businesses.
- crawling: Extracts content from specific URLs, useful for reading articles, PDFs, or any web page when you have the exact URL.
- competitor_finder: Identifies competitors of a company by searching for businesses offering similar products or services.
- linkedin_search: Search LinkedIn for companies and people using Exa AI. Simply include company names, person names, or specific LinkedIn URLs in your query.
- wikipedia_search_exa: Search and retrieve information from Wikipedia articles on specific topics, giving you accurate, structured knowledge from the world's largest encyclopedia.
- github_search: Search GitHub repositories using Exa AI - performs real-time searches on GitHub.com to find relevant repositories, issues, and GitHub accounts.
You can choose which tools to enable by adding the --tools
parameter to your Claude Desktop configuration:
Specify which tools to enable:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": [
"-y",
"exa-mcp-server",
"--tools=web_search_exa,research_paper_search,company_research,crawling,competitor_finder,linkedin_search,wikipedia_search_exa,github_search"
],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}
For enabling multiple tools, use a comma-separated list:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": [
"-y",
"exa-mcp-server",
"--tools=web_search_exa,research_paper_search,company_research,crawling,competitor_finder,linkedin_search,wikipedia_search_exa,github_search"
],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}
If you don't specify any tools, all tools enabled by default will be used.
4. Restart Claude Desktop
For the changes to take effect:
- Completely quit Claude Desktop (not just close the window)
- Start Claude Desktop again
- Look for the icon to verify the Exa server is connected
Using via NPX
If you prefer to run the server directly, you can use npx:
### Run with all tools enabled by default
npx exa-mcp-server
### Enable specific tools only
npx exa-mcp-server --tools=web_search_exa
### Enable multiple tools
npx exa-mcp-server --tools=web_search_exa,research_paper_search
### List all available tools
npx exa-mcp-server --list-tools
Troubleshooting 🔧
Common Issues
-
Server Not Found
- Verify the npm link is correctly set up
- Check Claude Desktop configuration syntax (json file)
-
API Key Issues
- Confirm your EXA_API_KEY is valid
- Check the EXA_API_KEY is correctly set in the Claude Desktop config
- Verify no spaces or quotes around the API key
-
Connection Issues
- Restart Claude Desktop completely
- Check Claude Desktop logs:
Built with ❤️ by team Exa
伺服器配置
{
"mcpServers": {
"exa-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--exa-labs--exa-mcp-server--exa-mcp-server",
"node ./.smithery/index.cjs"
],
"env": {
"EXA_API_KEY": "exa-api-key"
}
}
}
}