Skip to main content
Glama
expert-mcp-server

expert-mcp-server

by benthomasson

expert-mcp-server

MCP server for expert-service knowledge bases. Lets any MCP-compatible agent query beliefs, search documents, and explore reasoning chains.

Install

uv tool install git+https://github.com/benthomasson/expert-mcp-server

Related MCP server: lightrag-mcp

Configure

Create a .expert.toml in your project root:

url = "https://expert.ftl2.com"
project = "your-project-name"
api_key = "your-api-key"

Or set environment variables: EXPERT_URL, EXPERT_API_KEY, EXPERT_PROJECT.

Global config can also go in ~/.config/expert/config.toml under [default].

Usage

Claude Code

claude mcp add expert-service -- expert-mcp-server

Claude Desktop / other MCP clients

Add to your MCP config:

{
  "mcpServers": {
    "expert-service": {
      "command": "expert-mcp-server"
    }
  }
}

Or run from source:

{
  "mcpServers": {
    "expert-service": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/benthomasson/expert-mcp-server", "expert-mcp-server"]
    }
  }
}

Tools

Tool

Description

deep_search

Dual-path retrieval across beliefs and source documents with IDF ranking. Sub-second, no LLM call. Start here.

ask

LLM-synthesized answer grounded in the knowledge base.

search

Full-text search across beliefs, entries, and source documents.

explain_belief

Trace why a belief is IN or OUT through its justification chain.

what_if

Simulate retracting or asserting a belief to see the cascade.

get_belief

Full details for a specific belief including justifications.

list_beliefs

List beliefs filtered by status (IN/OUT).

list_projects

List available expert knowledge bases.

list_entries

List analysis entries (reports, findings).

get_entry

Read the full content of an entry.

All tools accept an optional project parameter. If omitted, the default project from config is used.

License

MIT

Available Tools

10 tools
askA

Ask a question and get an LLM-synthesized answer grounded in the knowledge base.

Uses the server's LLM to synthesize an answer from beliefs and source documents. Slower than deep_search but returns a ready-to-use answer.

Args: question: The question to ask project: Project name or UUID (uses default if empty)

Inputs: question (required), project. Returns: result

explain_beliefA

Explain why a belief is IN or OUT by tracing its justification chain.

Shows what supports this belief, what assumptions it rests on, and what would change if it were retracted.

Args: node_id: The belief ID to explain project: Project name or UUID (uses default if empty)

Inputs: node_id (required), project. Returns: result

get_beliefA

Get full details for a specific belief including justifications and dependents.

Args: node_id: The belief ID project: Project name or UUID (uses default if empty)

Inputs: node_id (required), project. Returns: result

get_entryA

Read the full content of an analysis entry.

Args: entry_id: The entry ID project: Project name or UUID (uses default if empty)

Inputs: entry_id (required), project. Returns: result

list_beliefsB

List beliefs in the knowledge base.

Args: status: Filter by truth value -- "IN", "OUT", or empty for all project: Project name or UUID (uses default if empty)

Inputs: status, project. Returns: result

list_entriesB

List analysis entries (reports, findings, assessments).

Args: topic: Filter by topic slug, or empty for all entries project: Project name or UUID (uses default if empty)

Inputs: topic, project. Returns: result

list_projectsA

List all available expert knowledge bases with belief, entry, and source counts.

Inputs: no named parameters. Returns: result

what_ifA

Simulate retracting or asserting a belief without modifying the database.

Shows the cascade: which beliefs would go OUT (retract) or come back IN (assert). Use this to understand the impact of changing a belief.

Args: node_id: The belief ID to simulate action: "retract" or "assert" project: Project name or UUID (uses default if empty)

Inputs: node_id (required), action, project. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools are clearly distinct, but 'ask' and 'deep_search' both involve answering questions, though their descriptions clarify different use cases. Slight overlap is mitigated by clear purpose statements.

    Naming Consistency4/5

    Names predominantly follow verb_noun pattern with underscores (e.g., explain_belief, list_entries). Exceptions like 'ask' and 'what_if' are idiomatic but not disruptive.

    Tool Count5/5

    10 tools cover the core operations for a knowledge base server: searching, retrieving, listing, explaining, and simulating. The count is well-scoped without redundancy.

    Completeness4/5

    The tool surface covers querying and simulation comprehensively, but lacks tools for creating or updating beliefs/entries. This may be intentional for a read-only expert server, hence a minor gap.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query and manage a document knowledge base via MCP, with RAG-powered search and grounded answers with citations.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query a persistent LightRAG knowledge base through any MCP client, offering both ready-made answers with source links and raw context retrieval for custom response generation.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM agents to query a structured knowledge library for search, explanations, related concepts, learning paths, examples, and cross-domain references via MCP.
      Apache 2.0