Using the Data From Your AI Assistant

The complete manual for the Observatory's MCP server: setup, every lookup it offers, how to read a response, and what to do when something looks wrong.

What this is

This site publishes its data over the Model Context Protocol (MCP) — an open standard that lets an AI assistant such as Claude look data up from an external source while you chat with it. You add one URL to your assistant; after that, questions about Japanese prices are answered from this site's numbers rather than from the assistant's memory.

The assistant does the reading and writing. The server only answers data lookups, and it can only see what this site already publishes: the same figures, from the same accepted release, computed by the same code as the public API. Nothing you ask is used to change anything here — every lookup is read-only.

Getting connected

The connect URL is:

https://web-production-c9178.up.railway.app/mcp

claude.ai and Claude Desktop

  1. Open Settings → Connectors (a paid Claude plan is required for custom connectors).
  2. Choose Add custom connector, name it Japan Data Observatory, paste the URL, and add it. No authentication is asked for — there is none.
  3. Start a new chat and confirm the connector is enabled in the tools menu under the message box. Connectors added mid-chat are often not picked up until a new conversation.

Claude Code (terminal)

claude mcp add --transport http japan-data-observatory https://web-production-c9178.up.railway.app/mcp

Run it once; every new session then has the tools. claude mcp list should show the server as connected.

Everything else

Any client that supports remote MCP servers (Streamable HTTP transport) takes the same URL. The server is stateless, needs no key, and identifies itself as Japan Data Observatory.

The lookups, one by one

You never call these yourself — the assistant chooses them from your plain-English question. Knowing what exists tells you what you can ask.

Consumer prices (always available)

Cross-shareholdings (where published)

A second dataset — Japanese policy shareholdings (政策保有株式) extracted from annual securities reports filed on EDINET — is being built filing by filing. Its lookups appear automatically on servers where the dataset is published; if your assistant doesn't list them, the server you're connected to doesn't carry the data yet.

How to read what comes back

Every lookup result carries the same disclosure fields. If you ever need to check the assistant's statement, these are what to look at:

Ten questions to try

  1. What are Japan's headline, core, and core-core inflation rates right now?
  2. Break the current headline rate into percentage-point contributions by group.
  3. Is inflation accelerating? Compare year-over-year with the 3-month annualized rate.
  4. How has the price of rice moved over the last three years?
  5. Compare electricity and city gas since 2022 on one timeline.
  6. What share of individually priced items is rising more than 2%? How does that compare with two years ago?
  7. What happened to mobile phone charges in 2021?
  8. With the cross-shareholding data: what's the coverage so far?
  9. Who holds company 8306, and what reasons do the filers state?
  10. Rank the extracted filers by policy-holding value and tell me who reduced positions year-on-year.

Limits, honestly stated

When something looks wrong

For data teams

The endpoint speaks JSON-RPC 2.0 over a single stateless POST — no session, no authentication, gzip supported. A minimal round-trip:

curl -X POST https://web-production-c9178.up.railway.app/mcp -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Tool results return the same JSON the site's public API serves, plus the disclosure fields above. For scheduled or bulk retrieval, use the REST API directly — it is the same data with proper HTTP caching.