register_api_key
Register or update your J-Quants API key to enable stock market data retrieval. Your key is encrypted and associated with your OAuth identity.
Instructions
Register or update your J-Quants API key (multi-user mode).
⚠️ SECURITY WARNING: The API key is transmitted in plaintext via the MCP protocol and may be logged by the MCP client or LLM provider. Use the browser-based /settings page instead for secure key registration.
Stores your J-Quants API key encrypted in the server's user database, associated with your OAuth identity. The server probes plan-specific J-Quants endpoints to auto-detect the plan (free / light / standard / premium) and stores it alongside the key. Subsequent tool calls will automatically use this key and the detected plan's rate limits and date-range restrictions.
This tool requires OAuth 2.1 authentication and server-side encryption (MCP_ENCRYPTION_KEY) to be configured.
Args: api_key: Your J-Quants API key (refresh token from the J-Quants portal).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||