The joplin-mcp-server is a server implementation of the Model Context Protocol (MCP) specifically designed for Joplin notes. It allows you to integrate your local language models with your Joplin notes, enabling advanced AI functionality while keeping your data private and secure.
Clone the repository:
git clone https://github.com/personalizedrefrigerator/joplin-mcp-server.git
cd joplin-mcp-server
Install dependencies:
npm install
Configure your server by creating a config.json
file:
{
"joplinToken": "YOUR_JOPLIN_TOKEN",
"joplinPort": 41184,
"serverPort": 3000,
"paths": {
"ollama": "http://localhost:11434/api/generate"
}
}
Replace YOUR_JOPLIN_TOKEN
with your actual Joplin Web Clipper API token.
Start the server with:
npm start
The server will be available at http://localhost:3000 (or the port you specified in the config).
The config.json
file supports the following options:
joplinToken
: Your Joplin Web Clipper API tokenjoplinPort
: The port Joplin's Web Clipper API is running on (default: 41184)serverPort
: The port your MCP server will run on (default: 3000)paths
: Configuration for model services
ollama
: URL to your Ollama APIopenai
: URL to an OpenAI-compatible APITo use with Ollama:
ollama pull llama2
config.json
To use with OpenAI-compatible APIs:
config.json
:
"paths": {
"openai": "https://your-openai-compatible-api-endpoint"
}
"openaiApiKey": "your-api-key"
To connect applications to your MCP server, use the following endpoint:
http://localhost:3000/mcp/v1/generate
Your applications can send POST requests to this endpoint with the MCP protocol format to generate responses based on your Joplin notes.
You can test if the server is running correctly by accessing:
http://localhost:3000/health
This should return a status indicating that the server is operational.
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.