Skip to main content
Glama
meritz-mcp

meritz-mcp

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost for HTTP mode. Default is '127.0.0.1'.127.0.0.1
MCP_PATHNoPath for HTTP mode. Default is '/mcp'. Use a random string as access token./mcp
MCP_PORTNoPort for HTTP mode. Default is '8000'.8000
MCP_TYPENoTransport type. Use 'streamable-http' for HTTP mode (e.g., for tunneling). Default is 'stdio'.stdio
MERITZ_WS_URLNoWebSocket URL for realtime data. Should be set if MERITZ_BASE_URL is not the production domain.
MERITZ_APP_KEYYesApp key issued from the developer portal (https://openapi.imeritz.com). Required for API access.
MERITZ_TIMEOUTNoRequest timeout in seconds. Default is '15'.15
MERITZ_BASE_URLNoBase URL for API calls. Defaults to the production domain.https://openapi.imeritz.com
MERITZ_READ_ONLYNoWhether to operate in read-only mode. Default is '1'; set to '0' to allow trading and currency exchange.1
MERITZ_APP_SECRETYesApp secret issued from the developer portal. Required for API access.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

메리츠증권 Open API 서버입니다. 각 도구의 설명에 그 분야의 api_type 목록이 있고, api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다. 국내 일봉(market_candles_days)은 기본이 KRX 정규장 종가이며 mrkt_div_code 는 생략할 수 있습니다. 조회 전용(MERITZ_READ_ONLY=1) — 주문·환전이 막혀 있습니다. meritz_backtest_* 도구는 과거 일봉으로 전략을 가상 체결하는 연구용이며 실제 주문을 내지 않습니다. 실시간(웹소켓)은 이 서버가 다루지 않습니다 — 코드 생성 MCP 를 쓰세요.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
meritz_accountA

메리츠 Open API — 계좌 (12건). api_type 으로 호출할 API 를 고르고 params 에 파라미터를 넣습니다. api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다.

collateral GET 내 계좌 담보 현황 조회 deposit GET 내 계좌 예수금 상세 조회 holdings GET 내 계좌 종목별 평가 조회 ovs_currencies GET 해외주식 외화잔고 조회 ovs_holdings GET 해외주식 잔고 조회 ovs_profit_loss GET 해외주식 실현손익 profit_loss GET 국내주식 실현손익 (일자별) profit_loss_summary GET 국내주식 실현손익 (합계) profit_loss_symbols GET 국내주식 실현손익 (종목별) transactions GET 내 계좌 입출금 내역 조회 valuation GET 내 계좌 자산평가 조회 valuation_by_asset GET 내 계좌 자산별 평가금액 조회

meritz_marketA

메리츠 Open API — 국내 시세(주식·지수) (41건). api_type 으로 호출할 API 를 고르고 params 에 파라미터를 넣습니다. api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다. ★ 국내 일봉(market_candles_days)은 기본이 KRX 정규장 종가입니다 (mrkt_div_code 를 생략하면 'TJ').

market_candles_days GET 시세추이 조회(일봉) market_candles_minutes GET 시세추이 조회(분봉) market_financials_balance_sheet GET 종목 재무상태표 조회 market_financials_cash_flow GET 종목 현금흐름표 조회 market_financials_growth GET 종목 재무비율(성장성) 조회 market_financials_income_statement GET 종목 손익계산서 조회 market_financials_profitability GET 종목 재무비율(수익성) 조회 market_financials_stability GET 종목 재무비율(안정성) 조회 market_financials_summary GET 종목 재무 요약 조회 market_financials_valuation GET 종목 재무비율(기업가치) 조회 market_index_candles_days GET 국내지수 시세추이 조회 market_index_candles_minutes GET 국내지수 시세추이 조회 (분봉) market_index_prices GET 국내지수 현재가 조회 market_investors GET 종목별 투자자매매동향 market_investors_detail GET 종목별 투자자매매동향 상세 market_investors_estimates GET 종목별 투자자 당일 매매 동향 조회 market_investors_rankings_foreign GET 당일 외국인 순매수 상위 조회 market_investors_rankings_foreign_firms GET 당일 외국계 순매수 상위 조회 market_investors_rankings_institutions GET 당일 기관 순매수 상위 조회 market_investors_rankings_period GET 기관·외국인 기간 순매수 상위 조회 market_orderbook GET 호가 조회 market_orderbook_after GET 시간외 단일가 호가 조회 market_prices GET 현재가 조회 market_prices_after GET 시간외 단일가 조회 market_prices_multi GET 관심종목 시세 조회 market_program_trading_by_time GET 종목별 시간대별 프로그램 매매 조회 market_program_trading_days GET 종목별 일별 프로그램 매매 조회 market_rankings_block_trade_count GET 대량체결건수 상위 조회 market_rankings_expected_price_change GET 예상체결가 등락 상위 조회 market_rankings_limit_breakaway GET 상한가·하한가 이탈 종목 조회 market_rankings_market_cap_weight GET 시가총액 구성비 상위 조회 market_rankings_near_high_low GET 신고가·신저가 근접 종목 조회 market_rankings_new_high_low GET 신고가·신저가 종목 조회 market_rankings_orderbook_volume GET 호가 잔량 상위 조회 market_rankings_price_change GET 등락률 상위 조회 market_rankings_program_buy GET 프로그램 매수 상위 조회 market_rankings_trade_strength GET 체결강도 상위 조회 market_screener GET 빠른 종목 검색(조건 번호) 조회 market_trades_minutes GET 체결추이 조회(분) market_trades_ticks GET 체결추이 조회(틱) market_vi_stocks GET 변동성완화장치(VI) 발동 종목 조회

meritz_overseas_marketA

메리츠 Open API — 해외 시세(주식·지수·원자재·환율) (21건). api_type 으로 호출할 API 를 고르고 params 에 파라미터를 넣습니다. api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다.

ovs_market_candles_days GET 해외주식 시세추이 조회 (일봉) ovs_market_candles_minutes GET 해외주식 시세추이 조회 (분봉) ovs_market_commodities_prices GET 해외 원자재·달러인덱스 현재가 조회 ovs_market_fx_prices GET 환율 시세 조회 ovs_market_index_candles_days GET 해외지수 시세추이 조회 ovs_market_index_candles_minutes GET 해외지수 시세추이 조회(분봉) ovs_market_index_prices GET 해외지수 현재가 조회 ovs_market_orderbook GET 해외주식 호가 조회 ovs_market_prices GET 해외주식 현재가 조회 ovs_market_prices_after GET 해외주식 애프터장 현재가 조회 ovs_market_prices_daytime GET 해외주식 주간거래 현재가 조회 ovs_market_rankings_indicators GET 해외주식 주요지표 순위 조회 ovs_market_rankings_near_high_low GET 해외주식 신고가·신저가 근접 종목 조회 ovs_market_rankings_new_high_low GET 해외주식 신고가·신저가 종목 조회 ovs_market_rankings_price_change GET 해외주식 시세 급변 종목 조회 ovs_market_rankings_trade_value GET 해외주식 거래대금 상위 조회 ovs_market_rankings_volume GET 해외주식 거래량 상위 조회 ovs_market_rankings_volume_surge GET 해외주식 거래량 급증 종목 조회 ovs_market_screener GET 해외주식 조건검색 조회 ovs_market_trades_minutes GET 해외주식 체결추이 조회 (분) ovs_market_trades_ticks GET 해외주식 체결추이 (틱)

meritz_tradingA

메리츠 Open API — 주문 (24건). api_type 으로 호출할 API 를 고르고 params 에 파라미터를 넣습니다. api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다.

credit_orders_buy POST 신용매수 주문 ⚠ 상태변경 credit_orders_sell POST 신용매도 주문 ⚠ 상태변경 orders_buy POST 일반주문 매수 ⚠ 상태변경 orders_cancel POST 국내주식 주문 취소 ⚠ 상태변경 orders_estimate GET 주문가능금액·수량 조회 orders_history GET 주문내역 조회 orders_modify POST 국내주식 주문 정정 ⚠ 상태변경 orders_sell POST 일반주문 매도 ⚠ 상태변경 ovs_orders_buy POST 해외주식 매수 주문 ⚠ 상태변경 ovs_orders_cancel POST 해외주식 주문 취소 ⚠ 상태변경 ovs_orders_detail GET 해외주식 주문체결 상세조회 ovs_orders_estimate GET 해외주식 주문가능금액 조회 ovs_orders_history GET 해외주식 주문체결내역 조회 ovs_orders_modify POST 해외주식 주문 정정 ⚠ 상태변경 ovs_orders_sell POST 해외주식 매도 주문 ⚠ 상태변경 ovs_orders_today GET 해외주식 당일 주문체결내역 조회 ovs_reserved_orders GET 해외주식 예약주문 조회 ovs_reserved_orders_buy POST 해외주식 예약주문 매수 ⚠ 상태변경 ovs_reserved_orders_cancel POST 해외주식 예약주문 취소 ⚠ 상태변경 ovs_reserved_orders_sell POST 해외주식 예약주문 매도 ⚠ 상태변경 reserved_orders GET 국내주식 예약주문 조회 reserved_orders_buy POST 국내주식 예약주문 매수 ⚠ 상태변경 reserved_orders_cancel POST 국내주식 예약주문 취소 ⚠ 상태변경 reserved_orders_sell POST 국내주식 예약주문 매도 ⚠ 상태변경

meritz_forexA

메리츠 Open API — 환전 (4건). api_type 으로 호출할 API 를 고르고 params 에 파라미터를 넣습니다. api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다.

fx_exchanges POST 실시간 환전신청 ⚠ 상태변경 fx_exchanges_history GET 환전 내역 조회 fx_rates GET 고시환율 조회 fx_rates_applied GET 환전 적용환율 조회

meritz_referenceA

메리츠 Open API — 기준정보 (5건). api_type 으로 호출할 API 를 고르고 params 에 파라미터를 넣습니다. api_type='describe' 로 부르면 파라미터 설명을 돌려줍니다.

ref_market_days GET 국내 영업일 조회 ref_market_hours GET 국내 장운영 조회 ref_ovs_exchanges GET 해외 거래소 조회 ref_ovs_market_days GET 해외 영업일 조회 ref_ovs_market_hours GET 해외 장운영 조회

meritz_backtest_demoC

합성 시세로 보고서를 시연합니다. 실제 종목·고객 시세가 아닙니다.

meritz_backtest_runA

등록된 고객 계좌의 키로 메리츠 국내 일봉을 조회해 SMA 전략을 검증합니다.

계좌가 여러 개면 meritz_info로 이름을 확인하여 account를 지정하세요. API 키를 인자로 넣지 마세요. TJ/Y 기준, 최대 1년. 실주문 없음. 세금·유동성·기업행사 미반영 연구용 결과입니다.

meritz_backtest_compareA

기존 실행과 동일한 시세·비용으로 이동평균 기간을 바꿔 비교합니다. 시세 재조회 없음.

meritz_backtest_tradeB

선택한 가상 체결의 신호일·가격·수량·비용·기록된 매매 근거를 조회합니다.

meritz_backtest_validateA

on_bar(ctx) Python 전략의 문법·진입점을 검사합니다. 코드를 실행하지 않으며 보안 인증이 아닙니다.

meritz_backtest_codeA

고객 Python 코드를 격리 실행 환경에서 백테스트하고 Claude 보고서를 표시합니다.

단일파일 def on_bar(ctx): → {'action':'buy'|'sell'|'hold','quantity':선택정수,'reason':선택문자열}. ctx에는 bar, history(현재까지), portfolio(cash/shares), index가 있습니다. 실제 코드만 받고 경로나 키는 받지 않습니다. 파일은 사용자가 선택해 읽은 내용을 전달하세요. source를 반드시 선택하세요. meritz는 symbol·startDate·endDate를 모두 지정해야 고객 계좌키로 시세를 조회합니다. demo는 합성 시세이며 symbol·startDate·endDate·account 값을 함께 지정할 수 없습니다. 표준 라이브러리만 지원. 파일·네트워크·자식프로세스 접근 차단, 최대20초, 메모리는 20ms 간격 감시(하드 상한 아님), 단일종목 일봉 다음봉 시가 가상체결. macOS 에서 소스로 실행할 때만 지원하며 단일 실행 파일(.mcpb·바이너리)에서는 거부됩니다. 실패시 격리 없는 실행이나 합성 시세로 대체하지 않습니다.

meritz_infoA

서버 설정과 API 카탈로그 요약, 알려진 문제를 돌려줍니다.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
report_ui

TDQS

A3.5/5.0

Scored across 13 tools

Disambiguation4/5

The six category routers (account, forex, market, overseas_market, reference, trading) target clearly separate domains, and domestic vs overseas market data is cleanly split. The only real overlap is inside the backtest family: demo, run and code all produce a backtest and differ mainly by data/strategy source, though the descriptions do spell out the distinction (synthetic prices vs SMA on account keys vs user Python).

Naming Consistency4/5

Every top-level tool uses the same meritz_ prefix with snake_case, and the backtest subfamily follows a strict meritz_backtest_* pattern. Minor deviation: category tools are bare nouns (meritz_account, meritz_market) while others are action-oriented (meritz_backtest_run, meritz_info), but both remain predictable and readable.

Tool Count4/5

13 top-level tools is a sensible facade count for a broker API that exposes ~107 underlying endpoints. The trade-off is internal overload: meritz_market hides 41 endpoints and meritz_trading hides 24 mutating endpoints behind a single api_type switch, making a few tools much heavier than the rest.

Completeness4/5

Coverage is broad and lifecycle-oriented: order placement, modify, cancel for domestic, overseas, credit and reserved orders, plus holdings, P&L, transactions, full market data, financials, reference calendars and a backtesting suite. Gaps are derivatives/futures, real-time streaming quotes, and any explicit auth/session tooling, but core brokerage workflows have no dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues