# DeepSeek — how to use (mcp.ai)

Connect your DeepSeek account and use 4 tools for AI models straight from your AI agent. Connect with your own API key. DeepSeek provides a range of AI products and services, including a chatbot, a search engine, and a language model.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_deepseek?ms=1787293380000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `deepseek_create_anthropic_message`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/deepseek`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/deepseek/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/deepseek/create/anthropic/message` — Tool to create a model response using DeepSeek's Anthropic-compatible API format with support for system prompts, tool calling, streaming, and thinking mode. Use when you need to generate chat complet
  - body: { model: string, tools?: object[], top_p?: number, stream?: boolean, system?: string|object[], messages: object[], thinking?: object, max_tokens: integer, temperature?: number, tool_choice?: string|object, stop_sequences?: string[] }
- `POST https://api.mcp.ai/api/deepseek/create/chat/completion` — Tool to create a chat completion using DeepSeek models (deepseek-chat or deepseek-reasoner). Use when you need to generate AI responses to chat conversations. Supports streaming, tool/function calling
  - body: { stop?: string|string[], model: string, tools?: object[], top_p?: number, stream?: boolean, logprobs?: boolean, messages: object[], thinking?: object, max_tokens?: integer, temperature?: number, tool_choice?: string|object, top_logprobs?: integer, stream_options?: object, response_format?: object, presence_penalty?: number, frequency_penalty?: number }
- `POST https://api.mcp.ai/api/deepseek/get/user/balance` — Tool to get user's current account balance including granted and topped-up balances with detailed breakdown by currency (CNY or USD). Use when you need to check if the user has sufficient balance for 
- `POST https://api.mcp.ai/api/deepseek/list/models` — Tool to list currently available DeepSeek models and provides basic information about each one such as the owner and availability. Use when you need to discover which models are available for API call

## Example prompts
- "What can I do in DeepSeek?"
- "Show me a summary of my DeepSeek account"

## More
- Page: https://mcp.ai/deepseek
- Agent spec (llms.txt): https://mcp.ai/deepseek/llms.txt
- Postman collection: https://mcp.ai/deepseek/postman.json
