Jikan MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/thunderrabbit/jikan.git
cd jikan
uv venv mgvenv
source mgvenv/bin/activate
uv pip install -e .
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "JIKAN_API_KEY=${JIKAN_API_KEY}" jikan -- node "<FULL_PATH_TO_JIKAN>/dist/index.js"

Replace <FULL_PATH_TO_JIKAN>/dist/index.js with the actual folder you prepared in step 1.

Required:JIKAN_API_KEY
README.md

An MCP server wrapper for the Meiso Gambare API to track behavioral sessions.

jikan

AI agents have a time problem.

Every time you start a new conversation, the agent wakes up with no idea when you last spoke because fundamentally: LLMs have no internal clock. They don't know what time it is, what day it is, or how long your current conversation has lasted. From the model's perspective, five minutes and five years are indistinguishable.

This time-blindness creates a real problem for tracking continuous work. If you ask an agent to log how much time you spent debugging a complex issue, it can't tell you how long you worked. If you ask whether you've been consistently putting in deep work lately, it has no way to know. It needs an external reference — something outside itself that actually measured the time.

Jikan is that reference. The key design decision: the server does the work agents are bad at.

  • The server records the exact start time — the agent never needs to know it
  • The server computes elapsed duration — the agent never does date math
  • The server maintains the session ledger between conversations — the agent never manages state

LLMs also have no reliable sense of how long building things takes.

Ask one to estimate a project and it might say "three weeks for a developer." That estimate is drawn from training data describing how long things used to take — before AI assistance collapsed the feedback loop.

This entire MCP server (schema design, API integration, security review, packaging) was built in a single session with Claude. Not three weeks. Not three days.

If you are planning a project and an AI gives you a time estimate, treat it as a pre-AI baseline. With AI support in the loop, the actual time is often an order of magnitude less.

Track it. That's what Jikan is for.

The server handles timestamps and duration math. You just say "start a meditation session" and "stop the timer" when done.

Exposes 7 tools so Claude Desktop, Cursor, and any MCP-compatible client can log meditation, focus, and exercise sessions — without writing curl commands.


Tools

Tool Cost Description
start_session 1 credit Start a new session; server records the time
stop_session free Stop a session; server computes duration
check_session free Get session details including live elapsed_sec
list_sessions free List sessions with optional date/activity filters
get_stats 1 credit Totals, streak, and credits remaining
list_activities free See available activity types
create_activity free Create a custom private activity

Requirements

Installation

git clone https://github.com/thunderrabbit/jikan.git
cd jikan

# with uv (recommended)
uv venv mgvenv
source mgvenv/bin/activate
uv pip install -e .

# or with pip
python -m venv mgvenv
source mgvenv/bin/activate
pip install -e .

Claude Desktop Configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "jikan": {
      "command": "uv",
      "args": ["--directory", "/path/to/jikan", "run", "server.py"],
      "env": {
        "JIKAN_API_KEY": "sk_your_key_here"
      }
    }
  }
}

Replace /path/to/jikan with the actual path where you cloned this repo, and sk_your_key_here with your key from mg.robnugen.com/settings/.

The config file is usually at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

API Reference

Full OpenAPI spec: mg.robnugen.com/api/v1/openapi.yaml

Local Testing

# Interactive tool inspector (launches browser UI to call each tool)
JIKAN_API_KEY=sk_your_key_here mcp dev server.py

Note: running python server.py directly in a terminal will show JSON parse errors — that's expected. The server speaks JSON-RPC over stdio and must be connected to an MCP client (Claude Desktop, the inspector above, etc.) to work correctly.

Tools (7)

start_sessionStart a new session; server records the time
stop_sessionStop a session; server computes duration
check_sessionGet session details including live elapsed_sec
list_sessionsList sessions with optional date/activity filters
get_statsTotals, streak, and credits remaining
list_activitiesSee available activity types
create_activityCreate a custom private activity

Environment Variables

JIKAN_API_KEYrequiredAPI key from mg.robnugen.com/settings/

Configuration

claude_desktop_config.json
{"mcpServers": {"jikan": {"command": "uv", "args": ["--directory", "/path/to/jikan", "run", "server.py"], "env": {"JIKAN_API_KEY": "sk_your_key_here"}}}}

Try it

Start a new meditation session for me.
Stop my current session and tell me how long it lasted.
What are my current stats and streaks for my focus sessions?
List all my exercise sessions from this week.
Create a new activity type called 'Deep Work'.

Frequently Asked Questions

What are the key features of Jikan?

Records exact start times for sessions. Computes elapsed duration automatically. Maintains session ledger between conversations. Supports custom activity creation. Provides session statistics and streak tracking.

What can I use Jikan for?

Tracking duration of deep work sessions to improve productivity. Logging meditation sessions to maintain a consistent habit. Measuring time spent on exercise routines. Analyzing historical session data to identify work patterns.

How do I install Jikan?

Install Jikan by running: git clone https://github.com/thunderrabbit/jikan.git && cd jikan && uv venv mgvenv && source mgvenv/bin/activate && uv pip install -e .

What MCP clients work with Jikan?

Jikan works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Jikan docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare