Alibaba Tablestore
โ ๐ โ๏ธ - MCP service for Tablestore, features include adding documents, semantic search for documents based on vectors and scalars, RAG-friendly, and serverless.
What is Alibaba Tablestore?
Alibaba Tablestore is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to โ ๐ โ๏ธ - mcp service for tablestore, features include adding documents, semantic search for documents based on vectors and scalars, rag-friendly, and serverless.
โ ๐ โ๏ธ - MCP service for Tablestore, features include adding documents, semantic search for documents based on vectors and scalars, RAG-friendly, and serverless.
This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- โ ๐ โ๏ธ - MCP service for Tablestore, features include adding
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx alibabacloud-tablestoreConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Alibaba Tablestore
The Alibaba Cloud Tablestore MCP Server connects AI assistants to Alibaba Cloud's Tablestore (OTS) service, enabling document storage and hybrid vector-scalar semantic search for RAG (Retrieval-Augmented Generation) workflows. It uses built-in embedding models (defaulting to BAAI/bge-base-zh-v1.5 via HuggingFace or Alibaba's DashScope API) to automatically vectorize documents at write time and query time, then performs hybrid vector and full-text retrieval against Tablestore's multi-dimensional index. This makes it ideal for building private knowledge base Q&A systems on a serverless, pay-as-you-go infrastructure.
Prerequisites
- Python 3.10 or later installed, plus the uv package manager
- An Alibaba Cloud account with a Tablestore (OTS) instance created
- Tablestore credentials: TABLESTORE_INSTANCE_NAME, TABLESTORE_ENDPOINT, TABLESTORE_ACCESS_KEY_ID, TABLESTORE_ACCESS_KEY_SECRET
- Optional: DashScope API key if using cloud-based embeddings instead of local HuggingFace models
- An MCP-compatible client such as Claude Desktop or Cherry Studio
Create a Tablestore instance on Alibaba Cloud
Log in to the Alibaba Cloud Console, navigate to Tablestore (OTS), and create a new instance. Note the instance name and endpoint URL. The MCP server will automatically create the required tables and indexes on first run.
Install uv and set up the Python environment
Install the uv package manager and create a Python 3.10+ virtual environment in the cloned repository.
pip3 install uv
git clone https://github.com/aliyun/alibabacloud-tablestore-mcp-server.git
cd alibabacloud-tablestore-mcp-server/tablestore-python-mcp-server
uv python install 3.12
uv venv --python 3.12Set required environment variables
Export your Alibaba Cloud credentials. These four variables are required; all others have defaults.
export TABLESTORE_ACCESS_KEY_ID=your_access_key_id
export TABLESTORE_ACCESS_KEY_SECRET=your_access_key_secret
export TABLESTORE_ENDPOINT=https://your-instance.cn-hangzhou.ots.aliyuncs.com
export TABLESTORE_INSTANCE_NAME=your_instance_nameRun the MCP server
Start the server in SSE mode (default) for shared access, or add --transport stdio for direct stdio integration.
# Optional: speed up HuggingFace model downloads in China
export HF_ENDPOINT=http://hf-mirror.com
uv run tablestore-mcp-serverConfigure your MCP client to connect
For SSE mode the server runs on port 8001 by default. Configure your MCP client to connect to the SSE endpoint, or use stdio transport for direct client integration.
Alibaba Tablestore Examples
Client configuration
Claude Desktop configuration using stdio transport. Set all required Tablestore environment variables in the env block. Adjust the path to your Python binary.
{
"mcpServers": {
"tablestore": {
"command": "/path/to/alibabacloud-tablestore-mcp-server/tablestore-python-mcp-server/.venv/bin/python",
"args": ["-m", "tablestore_mcp_server"],
"env": {
"TABLESTORE_ACCESS_KEY_ID": "your_access_key_id",
"TABLESTORE_ACCESS_KEY_SECRET": "your_access_key_secret",
"TABLESTORE_ENDPOINT": "https://your-instance.cn-hangzhou.ots.aliyuncs.com",
"TABLESTORE_INSTANCE_NAME": "your_instance_name"
}
}
}
}Prompts to try
These prompts demonstrate storing documents and performing semantic search through the two core tools.
- "Store this article in the knowledge base: [paste article text]"
- "Search the knowledge base for documents about machine learning optimization"
- "Find the most relevant documents about Python async programming"
- "Add these meeting notes to Tablestore and then search for action items related to Q3"
- "What documents do we have about database indexing strategies?"Troubleshooting Alibaba Tablestore
Authentication error: 'OTSAuthFailed' or invalid credentials
Verify that TABLESTORE_ACCESS_KEY_ID and TABLESTORE_ACCESS_KEY_SECRET are correct RAM user credentials with Tablestore permissions. The TABLESTORE_ENDPOINT must match your instance's region endpoint exactly as shown in the Alibaba Cloud Console.
Embedding model download is slow or fails
The default HuggingFace model (BAAI/bge-base-zh-v1.5) is downloaded on first run. Set HF_ENDPOINT=http://hf-mirror.com to use a Chinese mirror. Alternatively, switch to DashScope cloud embeddings by setting EMBEDDING_PROVIDER_TYPE=dashscope and DASHSCOPE_API_KEY=your_key.
Table or index creation fails on first run
Ensure your RAM user has the necessary Tablestore permissions: ots:CreateTable, ots:CreateSearchIndex, ots:PutRow, ots:Search. You can grant these through the Alibaba Cloud RAM console policy editor.
Frequently Asked Questions about Alibaba Tablestore
What is Alibaba Tablestore?
Alibaba Tablestore is a Model Context Protocol (MCP) server that โ ๐ โ๏ธ - mcp service for tablestore, features include adding documents, semantic search for documents based on vectors and scalars, rag-friendly, and serverless. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Alibaba Tablestore?
Follow the installation instructions on the Alibaba Tablestore GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Alibaba Tablestore?
Alibaba Tablestore works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Alibaba Tablestore free to use?
Yes, Alibaba Tablestore is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
Alibaba Tablestore Alternatives โ Similar Databases Servers
Looking for alternatives to Alibaba Tablestore? Here are other popular databases servers you can use with Claude, Cursor, and VS Code.
Excelize
โ 20.6kGo language library for reading and writing Microsoft Excelโข (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
MCP Toolbox for Databases
โ 15.3kOpen source MCP server specializing in easy, fast, and secure tools for Databases.
DBHub
โ 2.8kA universal database gateway MCP server that enables AI assistants to connect to and query multiple databases (PostgreSQL, MySQL, MariaDB, SQL Server, SQLite) with support for schema exploration, SQL execution, and secure connections via SSH tunnels.
Tabularis
โ 2.1kA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
Postgres AI Guide
โ 1.7kMCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
Anyquery
โ 1.7k๐๏ธ ๐ โ๏ธ - Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.
Browse More Databases MCP Servers
Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Alibaba Tablestore in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Alibaba Tablestore?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.