> ## Documentation Index
> Fetch the complete documentation index at: https://docs.screenpipe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Copilot CLI — agentic coding with screen context

> Connect screenpipe to GitHub Copilot CLI via MCP so Copilot can reference your screen history, meeting transcriptions, and app context from the terminal.

<img src="https://mintcdn.com/mediar-ai/AYkTwGji3F5k8xJN/copilot-icon.svg?fit=max&auto=format&n=AYkTwGji3F5k8xJN&q=85&s=6c52bda5039b49402d6b49a60af17eae" alt="GitHub Copilot" width="80" data-path="copilot-icon.svg" />

[GitHub Copilot CLI](https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli) is GitHub's terminal-based AI coding agent. it supports MCP servers, so you can connect screenpipe and let Copilot reference what you've been seeing, hearing, and doing.

## setup

before setting up, make sure screenpipe is running on your machine:

```bash theme={null}
npx -y screenpipe@latest record
```

check that it's running:

```bash theme={null}
curl http://localhost:3030/health
```

the easiest way to connect is the built-in `/mcp add` slash command inside Copilot CLI:

```
/mcp add
```

fill in the prompts:

| field   | value               |
| ------- | ------------------- |
| name    | `screenpipe`        |
| type    | `local`             |
| command | `npx`               |
| args    | `-y screenpipe-mcp` |
| tools   | `*`                 |

or edit `~/.copilot/mcp-config.json` directly:

```json theme={null}
{
  "mcpServers": {
    "screenpipe": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "screenpipe-mcp"],
      "tools": ["*"]
    }
  }
}
```

restart Copilot CLI after editing the config.

## stdio vs http — which should I use?

**use stdio** (`type: "local"` in config). this is the standard for local MCP servers on the same machine. screenpipe runs locally on your machine, so stdio communication has no network overhead and is the intended pattern.

HTTP transport is only for remote scenarios where your MCP client (Claude, Cursor, etc.) runs on a different machine than screenpipe — see [openclaw](/openclaw) for that pattern. **for Copilot CLI on the same machine, always choose stdio.**

## verify connection

inside Copilot CLI, run:

```
/mcp
```

you should see `screenpipe` listed with its tools.

## available tools

| tool               | description                                                                             |
| ------------------ | --------------------------------------------------------------------------------------- |
| `search-content`   | search screen text (accessibility-first, OCR fallback), audio transcriptions, and input |
| `activity-summary` | lightweight overview of app usage, speakers, and recent texts for a time range          |
| `search-elements`  | search structured UI elements from the accessibility tree                               |
| `frame-context`    | full accessibility tree, URLs, and text for a specific frame                            |
| `list-meetings`    | list detected meetings with duration, app, and attendees                                |
| `export-video`     | export screen recordings as MP4 for a time range                                        |

## usage examples

ask Copilot CLI to use screenpipe naturally:

```
> what was I working on this morning?

> find the error message I saw in my terminal earlier

> summarize the kubernetes docs I was reading

> export a video of my screen from 2-3pm today

> what did the team discuss in standup about the API refactor?

> which apps did I switch between most today?
```

## example workflows

**recall context from earlier:**

```
> I was reading a blog post about rust async earlier today,
> search screenpipe and summarize the key points
```

**reference meeting discussion:**

```
> search my audio transcriptions for what was discussed in standup
> about the API refactor, then help me implement it
```

**debug with screen history:**

```
> I saw an error message flash on screen, search screenpipe
> to find it and help me fix the issue
```

## requirements

* screenpipe running on localhost:3030 (start with `npx -y screenpipe@latest record`)
* GitHub Copilot CLI installed
* Node.js >= 18.0.0

## troubleshooting

**how do I check I'm on the latest screenpipe CLI?**

always invoke screenpipe with the `@latest` npm tag — it pulls the freshest build from npm each time:

```bash theme={null}
npx -y screenpipe@latest record
```

check the version you're running:

```bash theme={null}
npx -y screenpipe@latest --version
```

**MCP not connecting?**

1. verify screenpipe is running:
   ```bash theme={null}
   curl http://localhost:3030/health
   ```
   you should see `{"status":"healthy"}`.

2. confirm Copilot sees the server:
   ```
   /mcp
   ```

3. remove and re-add via `/mcp` if the server is in an error state.

**queries returning empty?**

* check screenpipe has data: `curl "http://localhost:3030/search?limit=1"`
* ensure screen recording permissions are granted
* give screenpipe a minute or two of running before querying

**permission errors on macOS?**

* System Settings → Privacy & Security → Screen Recording → enable for your terminal

still stuck? [ask in our discord](https://discord.gg/screenpipe).
