This MCP server provides a cognitive operating system that transforms your computer into an autonomous partner through the Model Context Protocol (MCP), allowing AI models to interact with system capabilities via a JSON-RPC layer running over UNIX and WebSockets.
Follow these steps to deploy the MCP server using Docker:
Install Docker and Docker Compose on your system
Clone the repository
Organize the source files in the llmbasedos_src/
directory
Create configuration files:
.env
file with your API keys and configurationlic.key
for license informationmail_accounts.yaml
for email configurationBuild the Docker containers:
docker compose build
docker compose up
luca-shell
to begin issuing MCP callsThe MCP server architecture includes:
The primary way to interact with the system is through mcp_call()
functions in Python scripts. Here's an example:
# Read content from a file
history = json.loads(mcp_call("mcp.fs.read", ["/outreach/contact_history.json"]).get("result", {}).get("content", "[]"))
# Use an LLM to process the data
prompt = f"Find 5 new agencies not in: {json.dumps(history)}"
llm_response = mcp_call("mcp.llm.chat", [[{"role": "user", "content": prompt}], {"model": "gemini-1.5-pro"}])
# Extract the response and write back to a file
new_prospects = json.loads(llm_response.get("result", {}).get("choices", [{}])[0].get("message", {}).get("content", "[]"))
if new_prospects:
updated = history + new_prospects
mcp_call("mcp.fs.write", ["/outreach/contact_history.json", json.dumps(updated, indent=2), "text"])
The system is LLM-agnostic and can work with:
The gateway routes all mcp.llm.chat
requests through your preferred backend, which you can configure in the settings.
/mnt/user_data
)If you encounter issues connecting to the MCP server:
.env
file are validThere 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.