Baidu Qianfan

Baidu Qianfan MCP Connector for Claude

A+

Orchestrate Baidu Qianfan AI models — manage chat completions, embeddings, and prompt templates directly from any AI agent.

6 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect your AI agents to Baidu Qianfan (百度千帆), the enterprise-grade LLM platform. This MCP provides 10 tools to automate interactions with Ernie Bot and other foundation models, including chat completions, vector embeddings, and prompt engineering.

What you can do

  • Model Interaction — Trigger chat completions with Ernie Bot (Turbo/Speed/4.0) using persistent context
  • Vector Embeddings — Generate semantic embeddings for text to power RAG and search workflows
  • Prompt Engineering — Manage and retrieve centralized prompt templates for consistent model outputs
  • Image Generation — Trigger Text-to-Image tasks using Baidu's advanced diffusion models
  • Usage Monitoring — Track token consumption and manage model service status programmatically

How it works

  1. Subscribe to this server
  2. Log in to the Baidu Qianfan Console
  3. Create an application to obtain your API Key and Secret Key
  4. Enable the models you wish to use (e.g., Ernie-4.0-8K)
  5. Insert your credentials into the fields below to start managing your Baidu AI workflows.

Who is this for?

  • AI Developers — automate the comparison of different Ernie model versions
  • System Integrators — bridge enterprise applications with Baidu's high-performance Chinese LLMs
  • Knowledge Managers — build robust RAG pipelines using Qianfan's embedding and chat services
ernie-botbaidu-cloudllm-apiembeddingsprompt-templateschinese-llm

6 tools expose this connector's capabilities to your AI agent.

get_embeddings

Generate vector embeddings for text

list_train_jobs

List model training jobs

chat_completions

Requires model endpoint name. Send a message to a Baidu Qianfan model

list_datasets

List uploaded datasets

list_models

List available model services

text_to_image

Generate an image from a text prompt

See how to talk to your AI agent using Baidu Qianfan.

Chat with Ernie Bot 4.0 and ask 'Write a formal apology letter for a late shipment'.

Connecting to Qianfan engine... Ernie 4.0 responded: 'Subject: Formal Apology... We sincerely regret the delay in your shipment #12345...' Would you like me to refine the tone?

Generate embeddings for the text 'The quick brown fox jumps over the lazy dog'.

Retrieving embeddings... I've generated a 384-dimensional vector for your input using Baidu's embedding-v1 model. The data is ready for your RAG search index.

List all my prompt templates in Qianfan.

Fetching templates... I found 3 templates: 1. Code-Review-Expert (ID: tp_1), 2. Creative-Writer (ID: tp_2), 3. SQL-Generator (ID: tp_3). Which one would you like to use?

For high performance and reasoning, use `ernie-4.0-8k`. For faster response times and cost efficiency, `ernie-speed-128k` or `ernie-lite-8k` are excellent choices.

Related Connectors