X Search MCP
Controls Microsoft Edge to search X.com using an authenticated session, with validation to avoid returning stale content.
README
X Search MCP
Este MCP usa o CUA Driver para controlar o Microsoft Edge e pesquisar no X.com usando o mesmo perfil que já está aberto e autenticado.
Ferramentas
list_cua_tools: lista as ferramentas expostas pelo CUA conectado.search_x: abre uma busca no X e retorna o texto atual da página.
search_x aceita operadores do X, por exemplo:
from:OpenAI model;"frase exata";since:2026-07-01 until:2026-07-15;lang:pt filter:links.
O parâmetro live=true abre a aba de posts mais recentes. Ele apenas controla o filtro da busca; não é usado como mecanismo de atualização.
Como funciona
- Localiza a janela aberta do Edge com
list_windows. - Navega pela barra de endereços usando
get_window_state,click,set_valueepress_key. - Lê o conteúdo atual com
page(action="get_text"). - Confirma que a URL e o texto retornado pertencem à consulta atual antes de responder.
Essa validação evita devolver silenciosamente o conteúdo de uma busca anterior quando a árvore de acessibilidade do X fica defasada.
Instalação
npm install
npm run build
Variáveis necessárias para o CUA via stdio:
CUA_TRANSPORT=stdio
CUA_COMMAND=C:\Users\User\AppData\Local\Programs\Cua\cua-driver\bin\cua-driver.exe
CUA_ARGS_JSON=["mcp"]
Para CUA via HTTP:
CUA_TRANSPORT=http
CUA_URL=http://localhost:3000/mcp
Teste de regressão
Com o Edge aberto e autenticado no X:
npm run test:sequential
O teste executa três pesquisas consecutivas na mesma sessão e falha se alguma resposta contiver conteúdo defasado.
Requisitos e limites
- O Edge precisa estar aberto no perfil desejado.
- A sessão do X precisa estar autenticada para buscas completas.
- O MCP não armazena senha e não contorna login, CAPTCHA ou controles do site.
- Não é necessário iniciar o Edge com porta de debugging nem usar perfil temporário.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.