# Connect MCP Services via CLINE (SQLite Example)

## Install VS Code

Download and install VS Code from the official website:  
[https://code.visualstudio.com/](https://code.visualstudio.com/)

## Install CLINE

Find **CLINE** in the VS Code Extensions marketplace and install it.

![image1](https://cdn.udelivrs.com/2026/04/e5d7669b88df7ff0c2228a5389399563_1776316925406.png)

## Configure CLINE to Use UCloud QWQ API

### 1. Click the robot icon on the left sidebar of VS Code

![image2](https://cdn.udelivrs.com/2026/04/3a26faafb81a0913852f5a1586301330_1776316925404.png)

### 2. Configure the chatbot API

If this is your first time using it, you will be prompted to configure the chatbot API.  
If you have used it before, you can click the settings gear icon in CLINE to configure it.

| Setting Item            | Description                                                                 |
|------------------------|-----------------------------------------------------------------------------|
| API Provider           | Select **OpenAI Compatible**                                                |
| Base URL               | `https://api-us-ca.umodelverse.ai/v1`                                              |
| API Key               | Get it from UModelVerse Console → Experience Center → Key page              |
| Model ID              | `Qwen/QwQ-32B`                                                              |
| Model Configuration    | Since QWQ is a reasoning model, enable **Enable R1 messages format**        |
| Context Window Size    | Set to `40000`                                                              |

![image3](https://cdn.udelivrs.com/2026/04/47a5e3de1b093c936ad600c4d850d6a5_1776316925362.png)

### 3. Test the configuration

After configuration, you can start a conversation to test.

If you receive a response, the configuration is successful.

![image](https://cdn.udelivrs.com/2026/04/d714141746f24cd55151a00b511296a2_1776316925408.png)

## Install UV and SQLite

Windows users (run in CMD)

```
winget install --id=astral-sh.uv -e
winget install sqlite.sqlite
```

Mac users

```
brew install uv
brew install sqlite3
```

## Configure CLINE to Use mcp-server-sqlite

Click the robot icon to open CLINE.

Click the server icon at the top of the page.

In MCP Servers, select the Installed tab.
You will see **Configure MCP Servers** below. Click it to open the CLINE MCP configuration file.

![image](https://cdn.udelivrs.com/2026/04/6e6b2affd584ebb06c734517c6ba72e1_1776316925364.png)

Modify the CLINE MCP configuration file.

Windows example:

```
{
  "mcpServers": {
    "sqlite_server" :{
        "command": "cmd.exe",
      "args": [
      "/c",
      "uvx",
      "mcp-server-sqlite",
      "--db-path",
      "D:\\tmp\\test.db"
    ]
    }
  }
}
```

Mac example:

```
{
  "mcpServers": {
    "sqlite_server": {
      "command": "uvx",
      "args": [
        "mcp-server-sqlite",
        "--db-path",
        "/tmp/test.db"
      ]
    }
  }
}
```

Replace `"D:\\tmp\\test.db"` or `"/tmp/test.db"` with your desired SQLite database path.
If the file does not exist, it will be created automatically.

After saving the file, you will see a prompt:

![image](https://cdn.udelivrs.com/2026/04/0fb290dab1c0577b1fa0e6264cb71e50_1776316925407.png)

Under the **Installed** tab, you will see `sqlite_server`.
If it shows a green status, it means it is enabled.

![image](https://cdn.udelivrs.com/2026/04/f09c60b6dad004aeaf1fa64899a3defe_1776316925398.png)

## Interaction Examples

**⚠️ Note: Please complete the following prompts within the same conversation. Do not clear the context. If asking again, specify using SQLite.**

### List databases

Enter the following command:

```text
Which databases can you access?
```

![image](https://cdn.udelivrs.com/2026/04/cd8702344a754f244c5d3ea615ea9ac2_1776316925366.png)

The model will return a command and ask whether to execute it.
Select **Run Command** or **Save** to proceed.

Some tasks may require multiple approvals.

You can enable **auto approve** for full automation, but it carries security risks.

![image](https://cdn.udelivrs.com/2026/04/973f717ee467d3b54bf0400eea1a647f_1776316925371.png)

After execution:

![image](https://cdn.udelivrs.com/2026/04/bfbf95fb30521e61997d6028cb2dda75_1776316925375.png)

### Create a table

```
I need to create an employee list that records an 11-digit employee lD, employee name, employee rank, and employee start date. Couldyou please create it for me?

```

![image](https://cdn.udelivrs.com/2026/04/563436d8e44466e9274a1aad0ba50322_1776316925385.png)

Approve the command to create the table.

![image](https://cdn.udelivrs.com/2026/04/165f96bbc904107400c4f55b83807256_1776316925386.png)

The table is created successfully.

![image](https://cdn.udelivrs.com/2026/04/3bf898adc808ff850dd7a89ed3c3eea0_1776316925389.png)

### Insert random sample data

```text
Please generate 20 random employee samples for me. l need to check if the table meets my expectations.
```

Approve the file edit to insert sample data:

![image](https://cdn.udelivrs.com/2026/04/e5466064df763f769b07d6fd59097b14_1776316925391.png)

Approve the operation. The employee list has been created successfully:

![image](https://cdn.udelivrs.com/2026/04/0216f20f964a261786d44256c4f1fddf_1776316925393.png)

### Clear data

```text
Please delete the data and list for me; I need an empty database
```

Approve the file edit to clear the data and reset the list:

![image](https://cdn.udelivrs.com/2026/04/827dd71a5f62d70ac42290ad89413867_1776316925377.png)


The model confirms the database is cleared:

![image](https://cdn.udelivrs.com/2026/04/fafd494fd158791e256541a90b348989_1776316925384.png)

`
