Skip to main content
Glama
J-Quants

j-quants-doc-mcp

Official
by J-Quants
README.md
# j-quants-doc-mcp

J-Quants APIのドキュメントを提供するMCPサーバー。Claude DesktopなどのMCPクライアントから、J-Quants APIのエンドポイント検索、詳細情報の取得、実行可能なサンプルコード生成、FAQ回答などの機能を利用できます。

## インストール

### 必須要件

- Python 3.10以上
- [uv](https://github.com/astral-sh/uv) (推奨) または pip

### uv toolを使用する場合(推奨)

```bash
# GitHubから直接インストール
uv tool install git+https://github.com/J-Quants/j-quants-doc-mcp.git

# またはローカルから
git clone https://github.com/J-Quants/j-quants-doc-mcp.git
cd j-quants-doc-mcp
uv tool install .
```

### pipを使用する場合

```bash
# GitHubから直接インストール
pip install git+https://github.com/J-Quants/j-quants-doc-mcp.git

# またはローカルから
git clone https://github.com/J-Quants/j-quants-doc-mcp.git
cd j-quants-doc-mcp
pip install .
```

## 起動方法

### スタンドアロンで起動

```bash
# uv toolでインストールした場合
uvx j-quants-doc-mcp

# pipでインストールした場合
j-quants-doc-mcp
```

### Claude Desktopから使用

`claude_desktop_config.json`に以下を追加:

```json
{
  "mcpServers": {
    "j-quants-doc-mcp": {
      "command": "uvx",
      "args": ["j-quants-doc-mcp"]
    }
  }
}
```

pipでインストールした場合は、`j-quants-doc-mcp` コマンドを直接指定します:
```json
{
  "mcpServers": {
    "j-quants-doc-mcp": {
      "command": "j-quants-doc-mcp",
      "args": []
    }
  }
}
```

設定ファイルの場所:
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`

### Cursorから使用

メニューバー「Cursor」→「Preferences」→「Cursor Settings」を開き、\
左のメニュー「Tools & MCP」を選択し、「New MCP Server」をクリック。\
開かれたJSONファイル(`~/.cursor/mcp.json`)に以下を追加:

```json
{
  "mcpServers": {
    "j-quants-doc-mcp": {
      "command": "uvx",
      "args": ["j-quants-doc-mcp"]
    }
  }
}
```

pipでインストールした場合は、`j-quants-doc-mcp` コマンドを直接指定します:
```json
{
  "mcpServers": {
    "j-quants-doc-mcp": {
      "command": "j-quants-doc-mcp",
      "args": []
    }
  }
}
```

以上の設定で、AIクライアントにてMCPサーバーを利用する準備が完了しました。

## アップデート

既にインストール済みの場合、最新版へのアップデートは以下の方法で行えます。

### uv toolを使用している場合

```bash
# GitHubから直接インストールした場合
uv tool upgrade j-quants-doc-mcp

# ローカルクローンからインストールした場合
cd j-quants-doc-mcp
git pull
uv tool upgrade j-quants-doc-mcp
```

### pipを使用している場合

```bash
# GitHubから直接インストールした場合
pip install --upgrade git+https://github.com/J-Quants/j-quants-doc-mcp.git

# ローカルクローンからインストールした場合
cd j-quants-doc-mcp
git pull
pip install --upgrade .
```

アップデート後、Claude DesktopやCursorを再起動することで新しいバージョンが反映されます。

## トラブルシューティング

### Claude Desktopで認識されない

1. 設定ファイルのJSONが正しいか確認
2. Claude Desktopを再起動
3. MCPサーバーのログを確認

### 生成されたコードが実行できない

1. 必要な依存関係をインストール: `pip install httpx python-dotenv`
2. 環境変数が設定されているか確認


## 関連リンク

- [J-Quants API公式ドキュメント](https://jpx-jquants.com/spec)
- [Model Context Protocol (MCP)](https://modelcontextprotocol.io/)
- [Claude Desktop](https://claude.ai/download)
- [Cursor](https://cursor.com/ja)

TDQS

A4.1/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: health check, endpoint search, endpoint details, pattern lookup, spec page fetch, migration guide, and FAQ/info routing. No two tools overlap in functionality; the boundaries are explicit and well-documented.

Naming Consistency4/5

Most tools follow a consistent verb_noun pattern (health_check, search_endpoints, describe_endpoint, get_pattern, fetch_spec_page, migrate_v1_to_v2, get_info). The only minor deviation is 'health_check' being a noun phrase rather than verb_noun, but all are snake_case and clear.

Tool Count5/5

7 tools is well within the ideal 3-15 range and each covers a distinct aspect of an API documentation MCP server: health, search, detail, patterns, page fetching, migration, and general info. The scope is appropriately sized with no redundant tools.

Completeness4/5

The tool surface covers the core needs of exploring an API spec: search, describe, fetch arbitrary pages, and migration guidance. Minor gaps like direct version comparison or credential handling are not necessary since the domain is documentation access, and get_info covers out-of-scope questions.

Maintenance

ActivityInactive
ResponsivenessUnresponsive