AB Component Server
Overview
AB Component Server is a client SDK provided by Baidu Smart Cloud for developers of AI-native applications, offering a one-stop development platform.
To use the AB Component Server, install the SDK in a Python environment (>=3.9) and utilize the provided components to build AI applications. You can call large models, manage workflows, and deploy applications easily.
- Model Invocation: Call large models and customize prompts. - Component Access: Access over 40 high-quality components from Baidu's ecosystem. - Workflow Orchestration: Manage workflows with multi-level abstractions. - Monitoring Tools: Visual tracing and detailed debug logs for production environments. - Deployment Options: Deploy as API services or interactive frontends.
- Building industry-grade RAG applications.
- Document parsing and knowledge management.
- Creating interactive AI applications like chatbots.
Add to your AI client
Use these steps to connect AB Component Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"ab-component-server-python": {
"command": "/path/to/your/python3.12",
"args": [
"/path/to/your/ai_search.py"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"ab-component-server-python": {
"command": "/path/to/your/python3.12",
"args": [
"/path/to/your/ai_search.py"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"ab-component-server-python": {
"command": "/path/to/your/python3.12",
"args": [
"/path/to/your/ai_search.py"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"ab-component-server-python": {
"type": "stdio",
"command": "/path/to/your/python3.12",
"args": [
"/path/to/your/ai_search.py"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ab-component-server-python": {
"command": "/path/to/your/python3.12",
"args": [
"/path/to/your/ai_search.py"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"ab-component-server-python": {
"command": "/path/to/your/python3.12",
"args": [
"/path/to/your/ai_search.py"
]
}
}
}FAQ
Can I use AB Component Server for all AI applications?
Yes! It supports a wide range of AI applications including document processing, chatbots, and more.
Is there a cost associated with using the SDK?
The SDK is free to use, but some components may require a subscription or usage limits.
How do I get support?
You can submit issues on GitHub or join the Baidu Smart Cloud community for assistance.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3769,"uuid":"0c15cca5-8366-4897-a52d-db36572861a1","name":"AB Component Server","title":"AB Component Server","description":null,"avatar_url":null,"created_at":"2025-03-21T15:24:25.389Z","updated_at":"2025-03-21T15:24:33.050Z","status":"created","author_name":"python","author_avatar_url":null,"tags":"appbuilder,sdk,ai-development","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/baidubce/app-builder/tree/master/python/modelcontextprotocol","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":"efd4782a-0570-4232-b235-1456ffa83972","tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":"/path/to/your/python3.12 /path/to/your/ai_search.py","server_params":"{}","server_config":"{\n \"mcpServers\": {\n \"AB Component Server\": {\n \"command\": \"/path/to/your/python3.12\",\n \"args\": [\n \"/path/to/your/ai_search.py\"\n ],\n \"envs\": {\n \"APPBUILDER_TOKEN\": \"your token\"\n }\n }\n }\n}","allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]