---
title: "Narwhal API MCP 伺服器 | 連接 AI 工具"
description: "將 Claude Code、Cursor、VS Code 與其他 MCP 用戶端連接至 Narwhal 託管的金融資料伺服器，其資料工具均為唯讀。"
url: "https://narwhalapi.com/zh-tw/mcp"
---

# Narwhal API MCP 伺服器

透過一個經過驗證的 MCP 端點，讓 AI 工具存取唯讀的經濟與金融資料。

[取得免費 API 金鑰](https://narwhalapi.com/zh-tw/signup)

Narwhal 為唯讀金融資料工具提供一個無狀態的 Streamable HTTP MCP 端點。其 API 金鑰、回應結構和額度餘額均與以下介面相同： [REST API](https://narwhalapi.com/zh-tw/docs/api.md)。

**端點**

`https://api.narwhalapi.com/mcp`

身分驗證：以 Narwhal 帳戶登入。如果用戶端無法登入，請傳送 `Authorization: Bearer YOUR_NARWHAL_API_KEY`

## 連接用戶端

選擇特定用戶端的連線指南：

### Claude Code

透過命令列新增遠端 HTTP 伺服器並登入。

[Claude 設定指南 →](https://narwhalapi.com/zh-tw/docs/mcp/claude.md)

### Cursor

將 Narwhal 伺服器新增至 `.cursor/mcp.json` 並登入。

[Cursor 設定指南 →](https://narwhalapi.com/zh-tw/docs/mcp/cursor.md)

### VS Code

將 Narwhal 伺服器新增至 `.vscode/mcp.json` 並登入。

[VS Code 設定指南 →](https://narwhalapi.com/zh-tw/docs/mcp/vscode.md)

其他 MCP 用戶端也可以新增相同端點並登入。無法登入的用戶端需要支援驗證的 Streamable HTTP，以及可設定的 `Authorization` 標頭。請閱讀 [與協定無關的 MCP 指南](https://narwhalapi.com/zh-tw/docs/mcp.md)。

## 工具目錄

使用 `tools/list` 可在身分驗證後探索目前公開版本啟用的工具。詳細工具目錄與對應的 REST 參考文件列於 [MCP 文件](https://narwhalapi.com/zh-tw/docs/mcp.md#tools)。

`經濟數據` `外匯` `實體棕櫚油` `經濟數據發布` `國定假日` `公債殖利率曲線`

可用工具可能隨目前公開版本變更。連線後檢查工具清單，並使用各操作的連結參考。

## 存取與額度

| 規則 | 含義 |
| --- | --- |
| 登入 | 以 Narwhal 帳戶登入並選擇「Allow」。不需要金鑰。 |
| API 金鑰 | 如果用戶端無法登入，請建立 Narwhal 帳戶，並將金鑰作為 HTTP Bearer 權杖傳送。請參閱 [身分驗證](https://narwhalapi.com/zh-tw/docs/authentication.md)。 |
| 唯讀工具 | The data tools retrieve published data and change nothing. The monitor tools and `report_missing_data` change state: they create, update and delete monitors, or record a report. |
| 額度 | 初始化與 `tools/list` 不收費。每次成功的 `tools/call` 按其所屬 API 的價格算一次呼叫，與 REST 共用同一餘額。 |
| 錯誤 | 工具錯誤與 REST 採用相同的公開狀態、代碼、詳細資訊和請求 ID 模型。請參閱 [錯誤](https://narwhalapi.com/zh-tw/docs/errors.md)。 |

## 探索檔案

機器可讀的伺服器說明：

- [`/server.json`](https://narwhalapi.com/server.json) — 以 MCP Registry 格式提供端點與身分驗證詳細資訊。
- [`/.well-known/mcp.json`](https://narwhalapi.com/.well-known/mcp.json) — 與 MCP 伺服器卡片相同的端點和身分驗證詳情，位於代理優先檢查的路徑。
- [`/.well-known/mcp/server-card.json`](https://narwhalapi.com/.well-known/mcp/server-card.json) — 實驗性的 MCP Server Card。

這些檔案說明端點與身分驗證要求，不能取代執行時的身分驗證或 `tools/list`。

此頁面對你有幫助嗎?
