home / mcp / baidu vector database mcp server
Model Context Protocol Server for Mochow
Configuration
View docs{
"mcpServers": {
"baidu-mochow-mcp-server-python": {
"command": "uv",
"args": [
"run",
"src/mochow_mcp_server/server.py",
"--endpoint",
"http://127.0.0.1:8287",
"--api-key",
"mochow"
],
"env": {
"MOCHOW_API_KEY": "mochow",
"MOCHOW_ENDPOINT": "http://127.0.0.1:8287"
}
}
}
}You run a Baidu Cloud Vector Database MCP Server locally to access vector data and perform operations from your preferred MCP-enabled applications. This server translates your MCP requests into actions on the Baidu Cloud Vector Database, enabling seamless integration with large language model workflows and custom clients.
Start the MCP Server locally using an MCP client. The server is designed to be run via the UV tool, and you can point it at your endpoint and API key to begin handling requests from your MCP-based applications.
Prerequisites: You need Python 3.10 or newer and the UV tool installed on your system.
Clone the MCP server repository and enter the project directory.
Commands you will run:
git clone https://github.com/baidu/mochow-mcp-server-python.git
cd mochow-mcp-server-pythonYou can start the server directly with UV, which runs the server script without a formal install step.
Two common ways to start the server are:
uv run src/mochow_mcp_server/server.py
uv run src/mochow_mcp_server/server.py --endpoint http://127.0.0.1:8287 --api-key mochowIf you prefer, you can configure environment variables in the local environment. The following variables are used to connect to the Baidu Cloud Vector Database:
MOCHOW_ENDPOINT=http://127.0.0.1:8287
MOCHOW_API_KEY=YOUR_API_KEYList all Database instances available in the connected Baidu Cloud Vector Database.
Create a new Database with a specified name.
Switch the active context to a specified Database.
List all Tables within the current Database.
Get detailed information about a specific Table, including schema and properties.
Retrieve statistical information for a given Table.
Delete rows from a Table using a filter expression.
Query rows from a Table using a filter expression and limit.
Create a vector index on a specified field with a given type and parameters.
Rebuild a specified vector index for a Table.
Delete a specified vector index from a Table.
Retrieve details about a specific vector index.
Perform a vector similarity search with optional scalar filters and field selection.
Execute a full-text search against a Table using a specified index and filter.