# Stack Overflow MCP server

> Search Stack Overflow's verified questions and answers and pull full threads into your assistant's context.

- Listing: https://mcp.tc/i/stack-overflow
- Connect: use the server's own URL `https://mcp.stackoverflow.com` (OAuth sign-in at the server); clients connect to it directly. The listing link is a page, not an MCP endpoint.
- Type: remote (Streamable HTTP)
- Auth: OAuth sign-in
- Category: [Docs & Knowledge](https://mcp.tc/c/docs-knowledge)
- Vendor: Stack Overflow
- Verified: yes, mcp.tc checked that this is the official server (https://mcp.tc/verify). It says who runs the server, not that it is safe.
- Homepage: <https://github.com/StackExchange/Stack-MCP>
- Repository: <https://github.com/StackExchange/Stack-MCP>

## About

Connects an assistant to Stack Overflow's knowledge base. It can search technical questions and answers and retrieve full threads, including accepted solutions and comments, so answers are grounded in community-verified content.

It runs as a hosted streamable HTTP endpoint at mcp.stackoverflow.com. Users sign in with a Stack Overflow account through OAuth. The README says the beta server is limited to 100 calls per day per user.

## What it can do

- Search Stack Overflow technical questions and answers
- Retrieve full threads with accepted solutions and comments
- Ground coding answers in community-verified content

## Example prompts

- "Search Stack Overflow for how to fix a CORS error in Express."
- "Find the accepted answer on Stack Overflow for a Python KeyError in nested dicts."
- "Get the full Stack Overflow thread on rebasing vs merging in git."
- "Look up Stack Overflow answers about React useEffect running twice."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport http stack-overflow https://mcp.stackoverflow.com
```

2. Start Claude Code, type `/mcp`, pick **stack-overflow** and choose **Authenticate**. A browser window opens for the Stack Overflow sign-in.

Add `--scope user` to make it available in every project, not just this one.

### Claude Desktop

1. Open **Settings → Connectors** and click **Add custom connector**.

2. Name it **Stack Overflow** and paste this URL:

```url
https://mcp.stackoverflow.com
```

3. Click **Add**, then **Connect**, and sign in when Stack Overflow asks.

Claude Desktop’s JSON config file only starts local servers. Remote servers go through Connectors, and connectors you add on claude.ai show up here too.

### claude.ai

1. Open the connector form on claude.ai. This button fills in the name and URL for you:

[Add to claude.ai](<https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Stack%20Overflow&connectorUrl=https%3A%2F%2Fmcp.stackoverflow.com>) (opens connector settings)

2. Check that the URL reads `https://mcp.stackoverflow.com` and click **Add**.

3. Click **Connect** and sign in when Stack Overflow asks.

Free plans allow one custom connector. On Team and Enterprise plans an owner adds it under **Organization settings → Connectors**.

### ChatGPT

1. On chatgpt.com, open **Settings → Security and login** and turn on **Developer mode**.

2. Go to `chatgpt.com/plugins` and click **+** to create an app for a remote MCP server.

3. Paste `https://mcp.stackoverflow.com` as the server URL and choose **OAuth**. ChatGPT sends you to Stack Overflow to sign in.

Developer mode is available on the web for Plus, Pro, Business, Enterprise and Education accounts.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=stack-overflow&config=eyJ1cmwiOiJodHRwczovL21jcC5zdGFja292ZXJmbG93LmNvbSJ9>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "stack-overflow": {
      "url": "https://mcp.stackoverflow.com"
    }
  }
}
```

Cursor shows **Needs login** next to the server. Click it to sign in.

### VS Code

[Install in VS Code](<https://vscode.dev/redirect/mcp/install?name=stack-overflow&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.stackoverflow.com%22%7D>) (opens VS Code)

Or from a terminal:

```bash
code --add-mcp '{"name":"stack-overflow","type":"http","url":"https://mcp.stackoverflow.com"}'
```

Or commit it to the repo in `.vscode/mcp.json`:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "stack-overflow": {
      "type": "http",
      "url": "https://mcp.stackoverflow.com"
    }
  }
}
```

VS Code asks you to sign in the first time the server starts.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "stack-overflow": {
      "serverUrl": "https://mcp.stackoverflow.com"
    }
  }
}
```

2. Refresh the MCP server list in Cascade and sign in when asked.

Devin Desktop is the new name for Windsurf. It reads `serverUrl` (or `url`) for remote servers.

### Codex

```bash
codex mcp add stack-overflow --url https://mcp.stackoverflow.com
codex mcp login stack-overflow
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.stack-overflow]
url = "https://mcp.stackoverflow.com"
```

### Gemini CLI

```bash
gemini mcp add --transport http stack-overflow https://mcp.stackoverflow.com
```

Then, inside Gemini CLI, run `/mcp auth stack-overflow` to sign in.

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients accept this shape. Some name the URL field differently: `serverUrl` in Devin Desktop, `httpUrl` in Gemini CLI’s settings file.

```json
{
  "mcpServers": {
    "stack-overflow": {
      "type": "http",
      "url": "https://mcp.stackoverflow.com"
    }
  }
}
```

Zed puts servers under `context_servers` in its settings. Cline needs `"type": "streamableHttp"`, or it assumes SSE.

Client only starts local servers? Bridge it with `npx -y mcp-remote https://mcp.stackoverflow.com`.

## Details

- Server version: 1.1.3
- Last checked: 2026-10-03 (reachable, asks for credentials)
- Listed: 2026-10-03
- Updated: 2026-10-03

---
Source: https://mcp.tc/i/stack-overflow (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
