Weaviate MCP server

Integrate with Weaviate, the AI-native database.
Back to servers
Provider
Weaviate
Release date
Feb 13, 2025
Language
Python
Stats
132 stars

The Weaviate MCP Server allows you to interact with Weaviate vector database using the Model Context Protocol (MCP). It provides tools for inserting data and performing hybrid searches on your vector database.

Installation

To get started with the Weaviate MCP Server, you'll need to build the server using the provided Makefile:

make build

After building the server, you can run the test client to verify the installation:

make run-client

Usage

The Weaviate MCP Server provides several tools for interacting with your Weaviate database.

Inserting Data

You can insert objects into your Weaviate database using the "Insert One" tool.

Request Format

To insert data, send a request with an empty JSON body:

{}

Response Format

After successful insertion, you'll receive an empty JSON response:

{}

Querying Data

You can retrieve objects from Weaviate using hybrid search with the "Query" tool.

Request Format

To query data, send a request with an empty JSON body:

{}

Response Format

Query results will be returned in JSON format:

{}

Next Steps

After installing the server, you should customize your requests with actual data according to your specific use case. The empty JSON templates provided above serve as placeholders that you'll need to populate with your own data structures when using the server.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later