nhplug-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NHPLUG_APP_KEY | Yes | Your NH Investment & Securities Open API App Key. | |
| NHPLUG_AUTH_URL | No | Token issuance URL. Default: https://api.nhplug.com:8443 (live only, not for mock). Usually leave as default. | https://api.nhplug.com:8443 |
| NHPLUG_BASE_URL | No | Base URL for REST API calls. Default: https://api.nhplug.com:8443 (live). For mock trading, use https://moapi.nhplug.com:8443. | https://api.nhplug.com:8443 |
| NHPLUG_APP_SECRET | Yes | Your NH Investment & Securities Open API App Secret. | |
| NHPLUG_SUCCESS_CODES | No | Custom comma-separated list of business success codes. Overrides default success codes (e.g., 00000,00166,00221,13578). | |
| NHPLUG_ENABLE_TRADING | No | Set to 'true' to expose trading (order) tools. Default: false. | false |
| NHPLUG_DEFAULT_ACCOUNT | No | Account number to use when omitted in balance/order shortcut tools. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_apisA | NH투자증권 Open API 에서 호출 가능한 엔드포인트 목록을 조회합니다. 자산군(domain)·카테고리·키워드로 필터링할 수 있습니다. 먼저 이 도구로 원하는 API 의 operationId 를 찾은 뒤 describe_api / call_api 로 이어가세요. 주문(거래) API 는 서버가 거래 활성화 모드일 때만 표시됩니다. |
| describe_apiA | 특정 operationId 의 입력 필드(Input_0) 스키마를 반환합니다. call_api 호출 전에 어떤 파라미터가 필요한지 확인하는 용도입니다. |
| call_apiA | operationId 와 입력값으로 NH Open API 를 실제 호출합니다. 인증/헤더/Input_0 봉투는 자동 처리됩니다. 주문(거래) API 는 서버가 거래 활성화 모드(NHPLUG_ENABLE_TRADING=true)일 때만 호출됩니다. |
| get_stock_priceA | 국내주식 현재가 시세를 조회합니다. (단축 도구 = call_api 로 krstockQuoteCurrentPrice 를 호출하는 것과 동일) |
| get_stock_balanceA | 국내주식 계좌 잔고를 조회합니다. (단축 도구 = krstockInquiryBalance) |
| list_accountsA | 로그인 자격증명(앱키/시크릿)에 연결된 보유 계좌 목록을 조회합니다. 잔고조회·주문 전에 계좌번호(act_no)를 확보하는 용도입니다. 입력값은 없습니다. (플랫폼 공통 엔드포인트 POST /n2/acctinfo) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool has a clearly distinct role: list_apis enumerates available endpoints, describe_api details input schemas, call_api invokes a specific operation, and the shortcuts (get_stock_price, get_stock_balance, list_accounts) are specific, well-named conveniences. There is no overlap that would confuse an agent.
All tool names follow a consistent verb_noun snake_case pattern (list_apis, describe_api, call_api, get_stock_price, get_stock_balance, list_accounts), which is predictable and readable.
With 6 tools, the set is well-scoped: a generic workflow (list/describe/call) plus targeted domain shortcuts. This is an appropriate size for an API gateway with common stock operations.
The combination of list_apis, describe_api, and call_api provides complete coverage of the NH Open API, allowing any endpoint to be discovered and invoked. The additional shortcuts cover common high-frequency operations without leaving dead ends.