MCP cover image
Servidor OpenAi-WebSearch-MCP logo
Public

Servidor OpenAi-WebSearch-MCP

See in Github
2025-03-17

Un servidor para manejar la búsqueda web de OpenAI usando MCP (protocolo multi-config)

1

Github Watches

1

Github Forks

0

Github Stars

OpenAI Web Search MCP Server

A TypeScript implementation of an MCP server that provides web search functionality using OpenAI's web search preview feature. This server utilizes OpenAI's latest Responses API with the web_search_preview capability, allowing AI models to perform real-time web searches through the OpenAI API.

Installation

You can run this package directly using npx:

npx openai-websearch-mcp-server

Or install it globally:

npm install -g openai-websearch-mcp-server

Usage with MCP Clients

This server is designed to be used with MCP (Model Context Protocol) clients. Here's how to set it up with different clients:

Claude Desktop

Add the following configuration to your Claude Desktop settings:

{
  "mcpServers": {
    "openai_websearch": {
      "command": "npx",
      "args": [
        "-y",
        "openai-websearch-mcp-server"
      ],
      "env": {
        "OPENAI_API_KEY": "your_api_key"
      }
    }
  }
}

Replace your_api_key with your actual OpenAI API key.

Environment Setup

  1. Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY='your-api-key-here'
  1. Run the server:
openai-websearch-mcp

By default, the server runs on port 3000. You can change this by setting the PORT environment variable:

PORT=8080 openai-websearch-mcp

API

The server provides a web search tool that can be used through the MCP protocol. The tool is named web_search and accepts a query string as input. Under the hood, it uses OpenAI's Responses API with the web_search_preview feature to perform real-time web searches, providing up-to-date information from across the internet.

Development

To set up the development environment:

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Start the development server:
    npm run dev
    

Building

To build the package:

npm run build

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • modelcontextprotocol
  • Servidores de protocolo de contexto modelo

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • n8n-io
  • Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • open-webui
  • Interfaz de IA fácil de usar (admite Ollama, Operai API, ...)

    Reviews

    3 (1)
    Avatar
    user_2lr8G15l
    2025-04-16

    As a loyal user of the OpenAI-WebSearch-MCP-Server by bitibi, I must say this tool has revolutionized my web search experience. It's incredibly efficient and seamless, handling complex queries with ease. The setup was straightforward and the performance is top-notch. Highly recommended for anyone needing a reliable web search server!