ReActMCP

Web search and scrapingContent and CMS

ReActMCP is a reactive MCP client that empowers AI assistants to instantly respond with real-time, Markdown-formatted web search insights powered by the Exa API.

Your AI app calls the ReActMCP MCP server, which does the work through tools like search_web and advanced_search_web and sends the result back to the chat.

About ReActMCP

ReActMCP is a community MCP server from mshojaei77, filed in our directory under web search and scraping and content and cms. ReActMCP is a reactive MCP client that empowers AI assistants to instantly respond with real-time, Markdown-formatted web search insights powered by the Exa API.

The README for ReActMCP lists tools such as search_web and advanced_search_web, which your AI app can call once the server is connected.

At a glance

Publisher
mshojaei77 (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
145

Tools ReActMCP gives your AI app

  • search_webBasic web search that returns results based on a query.
  • advanced_search_webAdvanced search with filtering options for domains, required text, and date ranges.

Tool names as the ReActMCP README lists them. Your AI app shows the live list once ReActMCP is connected.

How to set up ReActMCP

  1. Follow the install steps in the ReActMCP README; it is written in Python, so have that toolchain ready.
  2. Check the ReActMCP README for keys or settings; the registry lists none that ReActMCP requires.
  3. Add ReActMCP to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the ReActMCP tools to confirm the connection.
  5. Run one read-only task with ReActMCP first, such as a call to search_web, before you allow anything that writes or sends.

ReActMCP compared with similar servers

  • Perplexity Webui Scraper by henrique-coder has more GitHub stars than ReActMCP (148 against 145); both are community servers, and both run locally.
  • One Search by yokingma has more GitHub stars than ReActMCP (149 against 145); both are community servers, and both run locally. The One Search README lists 5 tools to ReActMCP's 2.
  • mcpsurfr by nkapila6 has more GitHub stars than ReActMCP (151 against 145); both are community servers, and both run locally.

Before you connect ReActMCP

  • Give ReActMCP its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each ReActMCP tool call until you trust what it does with them.
  • Treat text that ReActMCP fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for ReActMCP on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for ReActMCP

How marketing and sales teams put ReActMCP to work, by company size. Pick the size closest to yours and start ReActMCP on one use case.

Small business

  • A founder can use ReActMCP to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask ReActMCP what competitors launched this month and get the pages, not just a summary.
  • A small business can use ReActMCP to draft, update and publish site pages from a chat, keeping the site fresh without an agency.
  • ReActMCP runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use ReActMCP to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect ReActMCP to research accounts from public pages and add one specific line to each first email.
  • Content teams can connect ReActMCP to move drafts into the CMS with fields, tags and metadata filled in, ready for an editor.
  • Start with search_web and advanced_search_web, the tools ReActMCP lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise research and competitive intel teams can schedule ReActMCP to monitor many sources, with results stored and cited for review.
  • Large orgs can route ReActMCP through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Enterprises can give ReActMCP draft-only rights, so agents prepare content while publishing stays with approved editors.
  • ReActMCP is a community server, so have security review the code and pin a version before ReActMCP touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

ReActMCP README

From mshojaei77/ReActMCP on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

ReActMCP Web Search

ReActMCP Web Search is an MCP (Model Context Protocol) server that integrates web search capabilities into your AI assistant framework. It leverages the Exa API to perform both basic and advanced web searches, returning real-time, markdown-formatted results including titles, URLs, publication dates, and content summaries.

This repository is part of the broader ReActMCP project that connects various MCP tools and servers to empower your AI assistant with a wide range of capabilities.

Table of Contents

  • Features
  • Requirements
  • Installation
  • Configuration
    • Environment Variables
    • MCP Configuration
    • System Prompt
  • Usage
    • Running the Web Search Server
    • Testing the Tools
  • Troubleshooting
  • License
  • Contributing

Features

  • Basic Web Search: Perform simple searches using the Exa API.
  • Advanced Web Search: Use additional filtering options such as domain restrictions, text inclusion requirements, and date filters.
  • Markdown Output: Format search results in Markdown to easily incorporate titles, URLs, and summaries.
  • MCP Integration: Easily add this tool into your MCP server ecosystem for multi-tool AI assistance.

Requirements

Installation

  1. Clone the Repository

    git clone https://github.com/mshojaei77/ReActMCP.git
    cd ReActMCP
    
  2. Create a Virtual Environment (Optional but recommended)

    python -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
    
  3. Install Dependencies

    uv pip install -r requirements.txt
    

Configuration

Environment Variables

Create a .env file in the project root directory with at least the following variable:

EXA_API_KEY=your_exa_api_key_here
OPENAI_API_KEY=...

This key is required by the Exa API for performing web searches.

MCP Configuration

The MCP configuration file mcp_config.json defines the settings and tools available to your MCP server. An example configuration is provided:

{
  "websearch": {
    "script": "web_search.py",
    "encoding_error_handler": "ignore",
    "description": "Web search capability using Exa API that provides real-time internet search results. Supports both basic and advanced search with filtering options including domain restrictions, text inclusion requirements, and date filtering. Returns formatted results with titles, URLs, publication dates, and content summaries.",
    "required_env_vars": ["EXA_API_KEY"],
    "active": true
  },
  "settings": {
    "model": "gpt-4o",
    "system_prompt_path": "system_prompt.txt"
  }
}

You can personalize or extend this configuration by modifying parameters such as default number of results or adding new MCP tools.

System Prompt

The system_prompt.txt file configures the behavior and tone of your AI assistant. It guides responses to be friendly, engaging, and informative, with the inclusion of emojis. An example prompt is provided:

You are a helpful, knowledgeable AI assistant with web search capabilities. Your goal is to provide accurate, comprehensive, and up-to-date information to users.
Use lots of emojis and make your responses fun and engaging.

## Available Search Tools

- `search_web`: Basic web search that returns results based on a query
- `advanced_search_web`: Advanced search with filtering options for domains, required text, and date ranges

## Guidelines for Responding to Questions

1. For current information or facts that might have changed since your training data, use the appropriate search tool to find the most recent and relevant information.

2. Use `search_web` for general queries and `advanced_search_web` with appropriate filters for more specific needs.

3. Formulate precise search queries to maximize result relevance.

4. For recent information, use the `max_age_days` parameter in advanced search to limit results to recent publications.

5. When targeting specific sources, use the `include_domains` parameter to focus your search.

6. Cite sources by including URLs from search results.

7. For insufficient or contradictory results, acknowledge limitations and explain findings.

8. Break down complex topics into organized sections.

9. Provide balanced perspectives on controversial topics.

10. Be transparent about uncertainty rather than making up information.

11. Maintain a helpful, informative, and conversational tone.

## Response Quality Standards

Your responses should be well-structured, factually accurate, and tailored to the user's level of understanding on the topic. Use the web search capabilities as your primary tools for accessing current information before responding to time-sensitive or factual queries.

Feel free to adjust the system prompt to align with your desired assistant behavior.

Docker and Glama

The published container runs the Exa MCP server over stdio. Build and run it with the API key supplied at runtime:

docker build -t reactmcp-exa:local .
docker run --rm -i -e EXA_API_KEY=your_exa_api_key_here reactmcp-exa:local

The exact container command for MCP hosts is:

docker run --rm -i -e EXA_API_KEY=your_exa_api_key_here reactmcp-exa:local

The Docker image entry point is servers/exa_web_search.py. main.py is the optional OpenAI/LangGraph host and is not the container MCP entry point.

The repository includes glama.json with the maintainer identity used by Glama's claim flow. After merging it, repeat the Glama claim flow so Glama syncs the metadata and Dockerfile.

To validate the image with MCP Inspector:

npx @modelcontextprotocol/inspector docker run --rm -i -e EXA_API_KEY=your_exa_api_key_here reactmcp-exa:local

Run the Inspector command from a terminal with Docker and Node.js installed.

Usage

Running the Web Search Server

The MCP servers is implemented in servers directory. To run a server, simply execute it :

python servers/exa_web_search.py

This command will start the MCP server which listens for requests and exposes the following tools:

  • search_web: Perform basic web searches.
  • advanced_search_web: Perform advanced web searches with filtering options.
Testing the Tools

Within servers/exa_web_search.py, a test function test_search() is provided (currently commented out) to demonstrate basic usage of the search capabilities. You can run this test by uncommenting the test execution block and using Python's asyncio runner:

if __name__ == "__main__":
    import asyncio
    # Uncomment the following line to perform a test search
    # asyncio.run(test_search())
    mcp.run()

This will print search results for sample queries and help you verify that the tool is functioning as expected.

Claude Desktop Configuration:

Configure Claude Desktop to use this server by adding the following to your configuration:

{
  "mcpServers": {
    "websearch": {
         "command": "python",
         "args": ["path/to/servers/exa_web_search.py"]
       }
  }
}

Troubleshooting

  • Missing EXA_API_KEY: Ensure that the .env file is properly set up with your valid Exa API key.
  • Dependency Issues: Verify that all necessary Python packages are installed (check your requirements.txt file). Reinstall packages if needed.
  • API Errors: If you encounter errors during web searches, check your network connection and verify the Exa API status.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! If you have suggestions, bug fixes, or improvements, please open an issue or submit a pull request.

Happy coding and enjoy building your personalized, multi-tool AI assistant with ReActMCP Web Search! 🚀😊

Star History

Questions about ReActMCP

What is the ReActMCP MCP server?

ReActMCP is a reactive MCP client that empowers AI assistants to instantly respond with real-time, Markdown-formatted web search insights powered by the Exa API. ReActMCP is maintained by mshojaei77 on GitHub at mshojaei77/ReActMCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the ReActMCP MCP server?

ReActMCP doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (mshojaei77/ReActMCP). Like most servers, ReActMCP ends with a command or URL you paste into your AI app's MCP config.

Does ReActMCP need an API key?

The registry lists no required keys for ReActMCP. Check the ReActMCP README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is ReActMCP an official MCP server?

No. ReActMCP is a community server maintained by mshojaei77. Community servers can be excellent; read the code and the open issues before you give ReActMCP access to company data.

What license is ReActMCP under?

ReActMCP is released under the MIT license, according to its GitHub repository. The license covers the code of ReActMCP; the service it connects to has its own terms.