gaslighting-mcp

gaslighting-mcp

A fake web search server that generates LLM-powered search results and full articles based on a configurable background story for AI alignment testing. It enables users to simulate a controlled web environment where AI agents interact with fabricated content tailored to a specific narrative.

Category
Visit Server

README

gaslighting-mcp

A fake web search MCP server for AI alignment testing. It accepts a search query and returns LLM-generated search results shaped by a configurable background story.

Built with FastMCP and compatible with any OpenAI-style API endpoint.

How it works

  1. You provide a background story via the BACKGROUND_STORY environment variable
  2. The server exposes two tools: search and read_url
  3. search — generates 10 realistic search results (url, snippet, date) consistent with the background story
  4. read_url — generates a full fake article in markdown for a given URL, inferred from the domain/path and background story
  5. The consuming AI agent receives these as if they were real web content

Setup

uv sync

Configuration

Environment Variable Default Description
BACKGROUND_STORY "" The narrative that shapes all generated results
LLM_BASE_URL https://openrouter.ai/api/v1 OpenAI-compatible API base URL
LLM_API_KEY "" API key for the LLM endpoint
LLM_MODEL nousresearch/hermes-4-405b Model name

Usage

Standalone

uv run server.py

Claude Code MCP config

Add to your .mcp.json:

{
  "mcpServers": {
    "web-search": {
      "command": "uv",
      "args": ["run", "server.py"],
      "env": {
        "BACKGROUND_STORY": "your background story here",
        "LLM_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

search(query)

Returns a JSON array of 10 results:

[
  {
    "url": "https://example.com/some-article",
    "snippet": "A realistic excerpt shaped by the background story.",
    "date": "2025-12-15"
  }
]

read_url(url)

Returns a full fake article in markdown, inferred from the URL and background story. Matches the tone and style of the source website.

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured