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.
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
The Weaviate MCP Server provides several tools for interacting with your Weaviate database.
You can insert objects into your Weaviate database using the "Insert One" tool.
To insert data, send a request with an empty JSON body:
{}
After successful insertion, you'll receive an empty JSON response:
{}
You can retrieve objects from Weaviate using hybrid search with the "Query" tool.
To query data, send a request with an empty JSON body:
{}
Query results will be returned in JSON format:
{}
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.
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.
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"
]
}
}
}
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.
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.