
VikingDB
STDIOMCP server for VolcEngine VikingDB index search and query functionality
MCP server for VolcEngine VikingDB index search and query functionality
This MCP server provides a tool to interact with the VolcEngine VikingDB Service, allowing you to search index from your collections.
pip install -e .
Or with uv (recommended):
uv pip install -e .
The server requires the following environment variables:
VOLCENGINE_ACCESS_KEY
: Your VolcEngine access keyVOLCENGINE_SECRET_KEY
: Your VolcEngine secret keyVIKING_DB_COLLECTION_NAME
: Your vikingdb collection nameVIKING_DB_INDEX_NAME
: Your vikingdb index nameOptional environment variables:
VIKING_DB_REGION
: Your vikingdb region (default: cn-north-1)PORT
: Port for the FastMCP server (default: 8000)The server can be run with either stdio transport (for MCP integration) or SSE transport:
python -m mcp_server_vikingdb.server --transport stdio
Or:
python -m mcp_server_vikingdb.server --transport sse
Search index in the configured collection and configured index based on a query.
search_vikingdb( query="How to reset my password?", limit=3, collection_name=None, index_name=None, )
Parameters:
query
(required): The search query stringlimit
(optional): Maximum number of results to return (default: 3)collection_name
(optional): vikingdb collection name to search. If not provided, uses the globally configured collectionindex_name
(optional): vikingdb index name of the collection to search. If not provided, uses the globally configured index nameTo add this server to your MCP configuration, add the following to your MCP settings file:
{ "mcpServers": { "vikingdb": { "command": "uvx", "args": [ "--from", "git+https://github.com/volcengine/mcp-server#subdirectory=server/mcp_server_vikingdb", "mcp-server-vikingdb" ], "env": { "VOLCENGINE_ACCESS_KEY": "your-access-key", "VOLCENGINE_SECRET_KEY": "your-secret-key", "VIKING_DB_COLLECTION_NAME": "your-vikingdb-collection-name", "VIKING_DB_INDEX_NAME": "your-vikingdb-index-name", "VIKING_DB_REGION": "your-vikingdb-collection-region" } } } }
Authentication Errors
Connection Timeouts
Empty Results
The server uses Python's logging module with INFO level by default. You can see detailed logs in the console when running the server.
Contributions to improve the Viking Knowledge Base MCP Server are welcome. Please follow these steps:
Please ensure your code follows the project's coding standards and includes appropriate tests.
volcengine/mcp-server is licensed under the MIT License.