Skip to main content
Glama
parseltongue-claude

parseltongue-claude

by nlebovits

parseltongue-claude

MCP server + skill for Parseltongue hallucination detection in Claude Code.

Quick Start

# 1. Install
uv pip install -e .

# 2. Add MCP server
claude mcp add --transport stdio parseltongue -- $(pwd)/run-server.sh

# 3. Install skills
mkdir -p ~/.claude/skills
ln -s $(pwd)/skills/parseltongue ~/.claude/skills/parseltongue
ln -s $(pwd)/skills/parseltongue-review ~/.claude/skills/parseltongue-review

# 4. Restart Claude Code, then:
/parseltongue [document] What are the key claims?
/parseltongue-review README.md  # audit your own docs

Related MCP server: Fact-Checker MCP Server

What It Does

Inverts Parseltongue's architecture: instead of Parseltongue calling an LLM API, Claude Code becomes the LLM and calls Parseltongue for verification.

Original:     You → Parseltongue → LLM API → DSL → Verify
This:         You → Claude Code → Parseltongue MCP → Verify

Every claim must cite a verbatim quote. Misquotes are flagged as hallucinations.

Skills

/parseltongue — Grounded document analysis

Analyze external documents with provable claims. Every fact traces to a verbatim quote.

/parseltongue [SEC filing] Are there revenue recognition red flags?

/parseltongue-review — Documentation audit

Audit docs for accuracy, duplication, and consistency with source.

/parseltongue-review README.md      # vs upstream, find duplicated content
/parseltongue-review docs/          # audit mkdocs site

MCP Tools

Tool

Description

parseltongue_create_session

Create verification session

parseltongue_register_document

Register source document

parseltongue_load_dsl

Load DSL and verify quotes

parseltongue_check_consistency

Full consistency check

parseltongue_dsl_reference

Get DSL docs

See upstream Parseltongue docs for DSL syntax and examples.

Development

uv pip install -e ".[dev]"                              # install
uv run pre-commit install --hook-type commit-msg --hook-type pre-commit
uv run pytest                                           # test (80% coverage)
uv run ruff check --fix . && uv run ruff format .       # lint + format
uv run cz commit                                        # conventional commit

License

Apache-2.0

Available Tools

9 tools
parseltongue_check_consistencyC

Run full consistency check on the session.

Returns detailed report of verified claims, unverified claims (hallucinations), and logical inconsistencies.

Args: session_id: Session ID

Returns: JSON with consistency check results

Inputs: session_id (required). Returns: result

parseltongue_clear_sessionA

Clear all state from a session, keeping the session alive.

Args: session_id: Session ID

Returns: JSON with clear status

Inputs: session_id (required). Returns: result

parseltongue_create_sessionB

Create a new Parseltongue verification session.

Args: session_id: Unique identifier for this session (e.g., 'sec-filing-review')

Returns: JSON with session creation status

Inputs: session_id (required). Returns: result

parseltongue_dsl_referenceB

Get the Parseltongue DSL reference documentation.

Returns: Full DSL reference as a string

Inputs: no named parameters. Returns: result

parseltongue_get_stateB

Get current state of the session.

Returns facts, derives, axioms, and their verification status.

Args: session_id: Session ID

Returns: JSON with session state

Inputs: session_id (required). Returns: result

parseltongue_list_sessionsC

List all active sessions.

Returns: JSON with list of sessions

Inputs: no named parameters. Returns: result

parseltongue_load_dslB

Load Parseltongue DSL into the session.

Parses facts, axioms, defterms, derives, and diffs. Returns verification status including any quote mismatches (hallucinations).

Args: session_id: Session ID dsl_source: Parseltongue DSL source code

Returns: JSON with parse status and verification results

Inputs: dsl_source (required), session_id (required). Returns: result

parseltongue_queryC

Query the system with a well-formed formula (WFF).

Args: session_id: Session ID wff: Well-formed formula to evaluate

Returns: JSON with query result

Inputs: wff (required), session_id (required). Returns: result

parseltongue_register_documentA

Register a source document for evidence grounding.

Facts extracted from this document can cite it with :evidence blocks.

Args: session_id: Session ID name: Document name (referenced in :evidence blocks) content: Document text content

Returns: JSON with registration status

Inputs: name (required), content (required), session_id (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 9 tools

    Disambiguation4/5

    Tools are largely distinct by function: create/register/load/check/query/get/clear each target a different aspect of the session lifecycle. The only mild overlap is parseltongue_check_consistency vs parseltongue_load_dsl (both return verification/consistency info) and get_state vs query, but descriptions make the boundaries reasonably clear.

    Naming Consistency4/5

    All tools follow the consistent parseltongue_verb_noun pattern (create_session, register_document, load_dsl, check_consistency, get_state, query, list_sessions, clear_session, dsl_reference). Minor deviation is the verb-less 'query' and 'dsl_reference', but these are readable and predictable overall.

    Tool Count4/5

    Nine tools is a reasonable count for a session-management plus DSL-engine server. Each tool serves a clear purpose without feeling bulky; slightly on the higher end for a content-verification tool but well within acceptable range.

    Completeness4/5

    The surface covers the full session lifecycle: create, register documents, load DSL, check, query, get state, list, and clear. Minor gaps exist (no delete_session/destroy session, no update/append operations), but the core verification workflow is well covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers