
gscalzo/stackoverflow-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
gscalzo/stackoverflow-mcp は [https://github.com/gscalzo/stackoverflow-mcp.] からインポートされた MCP サーバーの候補です
概要
gscalzo/stackoverflow-mcp は [https://github.com/gscalzo/stackoverflow-mcp.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Stackのオーバーフローをクエリするためのモデルコンテキストプロトコルサーバー。 このサーバーは、Stack Overflowの質問と回答を検索することで、AIモデルが問題のプログラミングのソリューションを見つけるのに役立ちます。
##特徴
- エラーメッセージから探す
- プログラミング言語や技術タグから探す
- スタックトレース解析
- スコア/投票によるフィルター結果
- 質問と回答コメントを含める
- JSON または Markdown 形式の出力
インストール
npx を使用してサーバーを直接実行できます。
またはグローバルにインストールします。
サーバーの設定
MCP 設定ファイルの作成または変更:
- Claude.appの場合: [
~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - クロードデスクトップの場合: [
~/Library/Application Support/Claude/claude_desktop_config.json
次の設定を追加します。
オプション:Stack Overflow API 認証
サーバは認証なしで動作しますが、レート制限があります。 レート制限を増加させるために:
1。 Stack AppsからAPIキーを取得する 2. MCP 設定設定設定に API キーを追加
使用法
サーバは3つの主要なツールを提供しています。
##1. search by error を検索
エラー関連の質問に対するスタックオーバーフローを検索:
##2. で検索 by tags
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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:
- Get an API key from Stack Apps
- 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
インストール
npx -y @gscalzo/stackoverflow-mcp設定
{
"mcpServers": {
"stackoverflow": {
"command": "npx",
"args": ["-y", "@gscalzo/stackoverflow-mcp"],
"env": {
"STACKOVERFLOW_API_KEY": "your-api-key-optional"
},
"disabled": false,
"autoApprove": []
}
}
}