This MCP server template lets you create custom tools for Cursor IDE using Model Context Protocol. With it, you can build, deploy, and connect your own specialized tools to enhance Cursor's functionality.
You can install and run the MCP server using one of three methods.
The quickest way to get started:
For a containerized approach:
Clone the repository and create environment file:
git clone https://github.com/kirill-markin/weaviate-mcp-server.git
cd weaviate-mcp-server
cp .env.example .env
Build and run with Docker Compose:
docker compose up --build -d
Check the server:
# View logs
docker compose logs -f
# Test the endpoint
curl -i http://localhost:8000/sse
For direct installation:
Install the uv package manager:
# On macOS
brew install uv
# Or via pip (any OS)
pip install uv
Install the package and run the server:
# Install with development dependencies
uv pip install -e ".[dev]"
# Start with SSE transport on port 8000
uv run mcp-simple-tool --transport sse --port 8000
After installation, you need to connect your server to Cursor:
https://<your-app-name>.herokuapp.com/sse
http://localhost:8000/sse
To confirm your server is working correctly:
You can customize the server behavior using environment variables:
MCP_SERVER_PORT
(default: 8000) - Port to run the server onMCP_SERVER_HOST
(default: 0.0.0.0) - Host to bind the server toDEBUG
(default: false) - Enable debug modeMCP_USER_AGENT
- Custom User-Agent for website fetchingSet these variables in your .env
file for Docker or before running the server in traditional setup.
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.