🧠 Advanced MCP Server Setup with

by sidhyaashu

345 downloads Not rated yet
GitHub

About

Advanced MCP Server Setup with uv, llama-index, ollama, and Cursor IDE

Explore

- Uses uv for fast, reproducible Python dependency management
- Integrates LlamaIndex with HuggingFace embeddings and Ollama LLMs
- Runs a local LLM backend via Ollama at localhost:11434
- Configurable MCP server inside Cursor IDE
- Environment variables stored in a .env file
- Optional ipykernel for notebook usage

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name 🧠 Advanced MCP Server Setup with
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

---

- [x] Python 3.10+ installed
- [x] uv (by Astral) installed globally (pip install uv)
- [x] Ollama installed and running locally
- [x] Cursor IDE installed

---

uv venv
.venv\Scripts\activate  # On Windows

Create a .env file in the root of your project and add your API key:

env
LINKUP_API_KEY=your_api_key_here

---

Run these commands one by one inside your virtual environment:

bash

After installation, check your uv-managed pyproject.toml for something like this:

[tool.uv.dependencies]
mcp = { extras = ["cli"] }
httpx = ""
linkup-sdk = ""
llama-index = ""
llama-index-embeddings-huggingface = ""
llama-index-llms-ollama = ""
ipykernel = ""

---

Replace the paths with your actual machine paths. You can get the full path to uv by running:

where uv  # Windows

Now add this to your Cursor IDE settings:

{
  "mcpServers": {
    "weather": {
      "command": "C:\\Users\\SIDHYA\\AppData\\Roaming\\Python\\Python311\\Scripts\\uv.exe",  // Replace with your actual uv path
      "args": [
        "--directory",
        "C:\\Users\\SIDHYA\\Development\\Ai\\mcp-server",
        "run",
        "server.py"
      ]
    }
  }
}

---

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\ud83e\udde0 advanced mcp server setup with": {
            "ollama-mcp-integration": {
                "command": "uv",
                "args": [
                    "init",
                    "mcp-server"
                ]
            }
        }
    }
}

McpServers

{
    "ollama-mcp-integration": {
        "command": "uv",
        "args": [
            "init",
            "mcp-server"
        ]
    }
}

---

✅ Prerequisites

- [x] Python 3.10+ installed
- [x] uv (by Astral) installed globally (pip install uv)
- [x] Ollama installed and running locally
- [x] Cursor IDE installed

---

🛠 Step 1: Project Setup

1.1 Create a New Project Directory

uv init mcp-server
cd mcp-server

1.2 Create and Activate Virtual Environment

```bash
uv venv
.venv\Scripts\activate # On Windows

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.