toby avatar

Mirror Mcp

toby/mirror-mcp

This server gives LLMs a way to ask themselves questions through a single reflect tool that uses MCP's sampling capabilities to generate responses. You pass in a question, optional context, and sampling parameters like temperature and max tokens, and it returns a self-assessment response. Useful when you want the model to validate its own reasoning, check confidence levels, or catch logical gaps before committing to an answer. You can also pass custom system and user prompts to steer the reflection style, like asking it to think as a critical reviewer or focus on specific weaknesses. It's a metacognitive loop built on top of the standard MCP sampling interface.

GitHub stars
14
tool
1
transport
STDIO
last updated
Oct 2, 2025

Tools

1 tools

Public tool metadata for what this MCP can expose to an agent.

reflectEnables the LLM to ask itself a question and receive a response through MCP sampling.

Enables the LLM to ask itself a question and receive a response through MCP sampling.

No parameter schema in public metadata yet.

Sponsors

Readme

mirror-mcp

npm version License: MIT

A Model Context Protocol (MCP) server that provides a reflect tool, enabling LLMs to engage in self-reflection and introspection through recursive questioning and MCP sampling.

Overview

mirror-mcp allows AI models to "look at themselves" by providing a reflection mechanism. When an LLM uses the reflect tool, it can pose questions to itself and receive answers through the Model Context Protocol's sampling capabilities. This creates a powerful feedback loop for self-analysis, reasoning validation, and iterative problem-solving.

Features

  • πŸͺž Self-Reflection Tool: Enables LLMs to ask themselves questions and receive computed responses
  • πŸ”„ MCP Sampling Integration: Uses the Model Context Protocol's sampling mechanism for responses
  • πŸ“¦ npm Installable: Easy installation and deployment
  • ⚑ Lightweight: Minimal dependencies and fast startup
  • πŸ”§ Configurable: Customizable reflection parameters and sampling options

Installation


View the full README on GitHub

Details

Repository
github.com/toby/mirror-mcp
Package
mirror-mcp
Transport
STDIO
Registry
MCP registry, active