Skip to main content
Glama
Photalia

rikkahub-history-mcp

by Photalia

RikkaHub History MCP

A read-only MCP bridge for searching conversations from the official RikkaHub app through its Web API. It does not require a modified APK, root access, or Room database migration.

Features

  • recent_conversations — list recent conversations with lightweight metadata.

  • search_conversations — use RikkaHub's built-in full-text index.

  • get_conversation_context — read a bounded window around a search hit.

  • Reads only the currently selected message branch.

  • Returns USER/ASSISTANT text only; reasoning, tool calls/results, and attachments are omitted.

  • Resolves rikkahub.local with mDNS, so a phone DHCP address change normally needs no reconfiguration.

  • Automatically refreshes RikkaHub's Web JWT.

  • Streamable HTTP mode can be protected with a separate Bearer token.

Related MCP server: reddit-mcp

Requirements

  • Python 3.10+

  • RikkaHub Web Server enabled and reachable on the same LAN

  • RikkaHub Web JWT/password enabled (recommended)

Install

python -m venv .venv
# Windows
.venv\Scripts\python -m pip install -e .
# Linux/macOS
.venv/bin/python -m pip install -e .

Configure RikkaHub Web

In RikkaHub, enable the Web Server and set an access password. The default Web port is 8080.

The bridge first tries:

http://rikkahub.local:8080

It re-resolves mDNS after failures and can retain the last successful phone IP as a short-lived fallback.

Run with Streamable HTTP

Copy start_http.example.ps1 to the ignored start_http.ps1, then replace its placeholders. Alternatively, set the variables from .env.example in your process environment.

Important variables:

Variable

Description

RIKKAHUB_WEB_PASSWORD

RikkaHub Web access password

RIKKAHUB_WEB_URL

Optional explicit RikkaHub Web base URL

RIKKAHUB_WEB_PORT

RikkaHub Web port, default 8080

RIKKAHUB_LAST_IP_FILE

Optional last-successful-IP state file

RIKKAHUB_HISTORY_RUN_MODE

stdio or http

RIKKAHUB_HISTORY_HOST

MCP bind address, default 0.0.0.0 in HTTP mode

RIKKAHUB_HISTORY_PORT

MCP port, default 8766

RIKKAHUB_HISTORY_TOKEN

Bearer token protecting the MCP endpoint

RIKKAHUB_HISTORY_ALLOWED_HOSTS

Comma-separated allowed Host headers, e.g. 192.168.0.10:8766

RIKKAHUB_HISTORY_ALLOWED_ORIGINS

Comma-separated allowed Origins

Start:

.\start_http.ps1

Then configure RikkaHub MCP:

Transport: Streamable HTTP
URL: http://<computer-lan-ip>:8766/mcp
Header: Authorization: Bearer <RIKKAHUB_HISTORY_TOKEN>

RIKKAHUB_HISTORY_ALLOWED_HOSTS must include the host and port used in that URL. DNS rebinding protection remains enabled.

STDIO mode

RIKKAHUB_WEB_PASSWORD=... rikkahub-history-mcp

STDIO is the default when RIKKAHUB_HISTORY_RUN_MODE is not set.

Security

  • The MCP tools are read-only.

  • Do not commit start_http.ps1, .env, passwords, JWTs, or Bearer tokens.

  • Bind to a private LAN only and restrict the port with a host firewall.

  • The official RikkaHub Web API itself includes write endpoints; this bridge deliberately exposes none of them.

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    A read-only MCP server that connects to the Reddit Data API to search posts, browse subreddits, read comments, view user profiles, and check trending content through the Model Context Protocol.
    Last updated
    27
    1
    MIT
  • F
    license
    -
    quality
    B
    maintenance
    Read-only MCP server for Kan's FxTwitter API proxy, enabling public X/Twitter search and retrieval.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • Reddit MCP — public Reddit data via JSON endpoints (no auth required)

  • Read-only MCP server for searching Japan government procurement bid information from the KKJ portal.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Photalia/rikkahub-history-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server