File size: 1,450 Bytes
a6bfba7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a775aa4
a6bfba7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: Stack Overflow MCP Server
emoji: πŸ”
colorFrom: orange
colorTo: purple
sdk: gradio
sdk_version: "5.33.1"
app_file: app.py
pinned: false
license: mit
---

# Stack Overflow MCP Server πŸš€

A powerful Gradio app that serves as both a web interface and MCP (Model Context Protocol) server for Stack Overflow search capabilities.

## 🌟 Features

- **Web Interface**: Interactive search with 5 specialized tabs
- **MCP Server**: Expose 5 MCP tools for AI assistants
- **API Key Support**: Add your Stack Exchange API key for higher quotas
- **Real-time Search**: Fast and accurate Stack Overflow searches

## πŸ”§ MCP Integration

This app serves as an MCP server at the `/gradio_api/mcp/sse` endpoint. Connect your AI assistant using:

```json
{
  "mcpServers": {
    "stackoverflow": {
      "url": "https://c44b366466c774a9d5.gradio.live/gradio_api/mcp/sse"
    }
  }
}
```

## 🎯 Available MCP Tools

1. **search_by_query_sync** - General Stack Overflow search
2. **search_by_error_sync** - Error-specific search  
3. **get_question_sync** - Get specific question by ID
4. **analyze_stack_trace_sync** - Analyze stack traces
5. **advanced_search_sync** - Advanced search with filters

## πŸ’‘ Usage

1. **Web Interface**: Use the tabs to search Stack Overflow
2. **MCP Server**: Connect AI assistants to the MCP endpoint
3. **API Key**: Add your Stack Exchange API key for 10,000 requests/day

Built with ❀️ for the MCP Hackathon