Skip to content
GuidesJuly 12, 2026

MCP gateway với truy cập server được quản lý

AnyRouter chạy một Model Context Protocol server, lộ workspace — mô hình, key, preset, credit và trạng thái — thành công cụ JSON-RPC, auth OAuth 2.1, và MCP Gateway trên dashboard cho truy cập được quản lý. Một endpoint mọi MCP client có thể kết nối.

AnyRouter MCP server là gì?

AnyRouter chạy một Model Context Protocol (MCP) server biến workspace thành công cụ JSON-RPC mà mọi client MCP đều gọi được — Claude Desktop, Claude Code, Cursor, OpenCode, hoặc agent của bạn. Thay vì tự viết script kiểm số dư hay liệt kê mô hình, assistant gọi một tool trên một endpoint ổn định:

https://anyrouter.dev/api/v1/mcp
Endpoint duy nhất mọi MCP client kết nối.

Nó nói JSON-RPC 2.0 trên transport Streamable HTTP, nên MCP client chuẩn chỉ vào đó, không cần code tùy biến.

Nó lộ những tool nào?

Server đưa workspace thành catalog tool nhỏ, có scope — đọc credit, quản key, xem preset và hội thoại, kiểm sức khỏe hệ thống, thẳng từ assistant:

ToolMục đíchScope
list_modelsTìm catalog modelNone
get_creditsSố dư và usage trọn đờiread:credits
list_keys / create_key / revoke_keyQuản key LLM APIread/write:llm-keys
list_presetsLiệt kê preset workspaceread:presets
list_conversationsTìm hội thoại workspaceread:llm-keys
get_system_statusSnapshot sức khỏe API, nhà cung cấp, smoke testNone

MCP server không lộ chat tool — client gọi Chat Completions, Messages, hoặc Responses trực tiếp cho inference. Admin thấy thêm admin tool, ẩn với mọi người khác.

Auth và truy cập được quản lý hoạt động thế nào?

Client xác thực bằng OAuth 2.1 bearer token, hoặc key tĩnh: LLM key (sk-ar-v1-…, chỉ cấp list_models) hoặc management key (ak_…) mang scope mà tool bạn gọi cần. Trên màn hình OAuth consent, user chọn một gói — Read-only, Standard, hoặc Full — và có thể hạ thấp hơn client yêu cầu; tool cần scope ngoài gói đã cấp trả permission denied.

Tab MCP Gateway trên dashboard là nơi quản lý: kết nối client, kiểm soát tool nào lộ cho ai, và theo dõi cùng identity cùng audit trail bạn đã dùng cho inference. Thêm một tool không nghĩa là sửa lại config mọi client.

Kết nối một dòng

Chỉ MCP client vào endpoint và xác thực một lần. Setup từng bước cho Claude Desktop, Claude Code, Cursor và OpenCode nằm ở /docs/api-reference/mcp.

Kết nối AnyRouter MCP server với Claude Desktop, Cursor, hoặc Claude Code — miễn phí.

Thiết lập MCP

Gửi request đầu trong hai phút

Bắt đầu miễn phí với key của bạn, hoặc nạp rồi trả theo token. Go: $4 credit/tháng — $2/tháng, hoặc miễn phí khi góp một provider key.

Bắt đầu miễn phí