GS

gscalzo/stackoverflow-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

73 stars 11 forks Качество 59 Тренд 0

gscalzo/stackoverflow-mcp - кандидат на сервер MCP, импортированный из https://github.com/gscalzo/stackoverflow-mcp.

Обзор

gscalzo/stackoverflow-mcp - кандидат на сервер MCP, импортированный из https://github.com/gscalzo/stackoverflow-mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol для запроса переполнения стека. Этот сервер помогает моделям ИИ находить решения проблем программирования путем поиска вопросов и ответов.

Особенности

Поиск по сообщениям об ошибках Поиск по языку программирования и технологическим тегам

  • Анализ следов стека
  • Результаты фильтрации по баллам/голосам
  • Включите комментарии к вопросам и ответам Выход в формате JSON или Markdown

##Установка

Вы можете запустить сервер напрямую с помощью npx:

Или установить его глобально:

Настройка сервера

Создайте или измените файл настроек MCP:

Для Claude.app: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json Для Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json

Добавить следующую конфигурацию:

###Необязательно: аутентификация Stack Overflow API

Сервер работает без аутентификации, но имеет ограничения скорости. Для увеличения лимитов ставок:

  1. Получите ключ API из Stack Apps
  2. Добавьте ключ API к конфигурации настроек MCP

Использование

Сервер предоставляет три основных инструмента:

###1: Поиск by error

Поиск Stack Overflow для вопросов, связанных с ошибками:

###2. Search by tags

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Stackoverflow MCP Server

A Model Context Protocol server for querying Stack Overflow. This server helps AI models find solutions to programming problems by searching Stack Overflow questions and answers.

Features

  • Search by error messages
  • Search by programming language and technology tags
  • Stack trace analysis
  • Filter results by score/votes
  • Include question and answer comments
  • Output in JSON or Markdown format

Installation

You can run the server directly using npx:

npx -y @gscalzo/stackoverflow-mcp

Or install it globally:

npm install -g @gscalzo/stackoverflow-mcp

Configure the Server

Create or modify your MCP settings file:

  • For Claude.app: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • For Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the following configuration:

{
  "mcpServers": {
    "stackoverflow": {
      "command": "npx",
      "args": ["-y", "@gscalzo/stackoverflow-mcp"],
      "env": {
        "STACKOVERFLOW_API_KEY": "your-api-key-optional"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Optional: Stack Overflow API Authentication

The server works without authentication but has rate limits. To increase the rate limits:

  1. Get an API key from Stack Apps
  2. Add the API key to your MCP settings configuration

Usage

The server provides three main tools:

1. search_by_error

Searches Stack Overflow for error-related questions:

interface SearchByErrorInput {
  errorMessage: string;          // Required: Error message to search for
  language?: string;            // Optional: Programming language
  technologies?: string[];      // Optional: Related technologies
  minScore?: number;           // Optional: Minimum score threshold
  includeComments?: boolean;    // Optional: Include comments in results
  responseFormat?: "json" | "markdown"; // Optional: Response format
  limit?: number;              // Optional: Maximum number of results
}

2. search_by_tags

Searches Stack Overflow questions by tags:

interface SearchByTagsInput {
  tags: string[];              // Required: Tags to search for
  minScore?: number;          // Optional: Minimum score threshold
  includeComments?: boolean;   // Optional: Include comments in results
  responseFormat?: "json" | "markdown"; // Optional: Response format
  limit?: number;             // Optional: Maximum number of results
}

3. analyze_stack_trace

Analyzes stack traces to find relevant solutions:

interface StackTraceInput {
  stackTrace: string;          // Required: Stack trace to analyze
  language: string;           // Required: Programming language
  includeComments?: boolean;   // Optional: Include comments in results
Открыть полный README на GitHub

Установка

npx -y @gscalzo/stackoverflow-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "stackoverflow": { "command": "npx", "args": ["-y", "@gscalzo/stackoverflow-mcp"], "env": { "STACKOVERFLOW_API_KEY": "your-api-key-optional" }, "disabled": false, "autoApprove": [] } } }