How to Use the Baidu Qianfan MCP in Claude Code
Pipe Baidu Qianfan's AI models into your shell scripts and CI/CD pipelines with Claude Code. Generate text, images, and embeddings from the command line.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Baidu Qianfan MCP to Claude Code
Create your Vinkius account to connect Baidu Qianfan to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Baidu Qianfan in Your CI/CD Pipeline
This MCP Server lets you call Baidu Qianfan models from any shell environment. Use `chat_completions` in a GitHub Action to auto-generate release notes from your commit logs. The output is just stdout, so you can pipe it to a file or another command. You can also build a pre-deployment check. Have a script use `list_models` to confirm the right model version is active before deploying an application that depends on it. If it's not, the script can fail the build.
Scriptable Image and Embedding Generation
Generate images headlessly from the terminal. A cron job can use the `text_to_image` tool to create a 'chart of the day' and save it to a file. It's all done from the command line, no browser required. The same goes for embeddings. You can write a script that watches a directory, and any time a new text file appears, it calls `get_embeddings` and stores the resulting vector in a database. This is perfect for building automated data processing pipelines.
Manage Models from the Terminal
Stop logging into web UIs to check on things. With Claude Code and this MCP server, you can manage your Baidu Qianfan resources directly. Run `claude mcp call baidu-qianfan-mcp list_train_jobs` to check on fine-tuning progress from your terminal. This makes it easy to query your AI resources as part of a larger script. You can combine it with tools like `jq` to parse the JSON output and script actions based on the results, like sending an alert when a training job completes.
Set up Baidu Qianfan MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seebaidu-qianfan-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Baidu Qianfan transactions." It will automatically discover and invoke the available Baidu Qianfan tools.
claude mcp add --transport http baidu-qianfan-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Baidu Qianfan MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Baidu Qianfan MCP today
We host it, we monitor it, we maintain it. You just paste one token.