
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
@notalk-tech/stackoverflow-mcp
Advanced tools
StackOverflow MCP server for querying programming Q&A using FastMCP - npx wrapper for Python package
A Model Context Protocol (MCP) server that provides seamless access to StackOverflow's programming Q&A database using the FastMCP framework. This package serves as an NPX-compatible wrapper for the Python-based StackOverflow MCP server.
# Run directly with npx (no installation required)
npx @notalk/stackoverflow-mcp
# Skip installation prompts (useful for automation)
npx -y @notalk/stackoverflow-mcp
# Or install globally
npm install -g @notalk/stackoverflow-mcp
stackoverflow-mcp
# If you have the Python package installed
python -m stackoverflow_mcp
# Using uv (recommended for Python development)
uv run python -m stackoverflow_mcp
The NPX wrapper will automatically:
stackoverflow-mcp
)npx @notalk/stackoverflow-mcp --help
npm install -g @notalk/stackoverflow-mcp
stackoverflow-mcp --help
git clone https://github.com/NoTalkTech/stackoverflow-mcp.git
cd stackoverflow-mcp
npm install
node cli.js --help
# Start the MCP server with default settings
npx @notalk/stackoverflow-mcp
# Auto-confirm installation (useful for scripts/CI)
npx -y @notalk/stackoverflow-mcp
# Start on a specific port
npx @notalk/stackoverflow-mcp --port 8080
# Development mode with debug logging
npx @notalk/stackoverflow-mcp --dev --log-level DEBUG
# Use custom configuration file
npx @notalk/stackoverflow-mcp --config-file ./my-config.json
For Python development, we recommend using uv for faster dependency management:
# Install dependencies with uv
uv sync
# Run the server with uv
uv run python -m stackoverflow_mcp
# Development mode with uv
uv run python -m stackoverflow_mcp --log-level DEBUG
FastMCP Benefits:
@mcp.tool()
Create a .stackoverflow-mcp.json
file in your project directory:
{
"host": "localhost",
"port": 3000,
"log_level": "INFO",
"stackoverflow_api_key": "your_api_key_here"
}
Options:
--host TEXT Host to bind the server to
--port INTEGER Port to bind the server to (auto-detect if not specified)
--log-level [DEBUG|INFO|WARNING|ERROR]
Logging level
--config-file PATH Path to configuration file (auto-discover if not specified)
--working-dir DIRECTORY Working directory (auto-detect if not specified)
--auto-port / --no-auto-port Automatically find an available port if specified port is in use
--dev / --prod Run in development mode (more verbose logging, auto-reload)
--health-check / --no-health-check
Enable startup health checks
--version Show the version and exit.
--help Show this message and exit.
The server automatically discovers configuration files in the following order:
.stackoverflow-mcp.json
stackoverflow-mcp.config.json
config/stackoverflow-mcp.json
.config/stackoverflow-mcp.json
{
"host": "localhost",
"port": 3000,
"log_level": "INFO",
"stackoverflow_api_key": "your_optional_api_key",
"max_requests_per_minute": 30,
"enable_caching": true
}
Once running, the MCP server provides the following tools:
search_questions
: Search StackOverflow questions by keywordsget_question_details
: Get detailed information about a specific questionsearch_by_tags
: Find questions filtered by programming language tagsget_user_info
: Get information about StackOverflow users# Test the npm package
npm test
# Test npm packaging
npm run test:npm
# Test global installation
npm run test:install
# Test Python module directly
python -m pytest tests/ -v
# Clone the repository
git clone https://github.com/NoTalkTech/stackoverflow-mcp.git
cd stackoverflow-mcp
# Install Node.js dependencies
npm install
# Install Python dependencies
pip install -e .
# Run in development mode
npm start -- --dev
@notalk/stackoverflow-mcp/
βββ cli.js # NPX wrapper (Node.js)
βββ package.json # NPM package configuration
βββ src/stackoverflow_mcp/ # Python MCP server
β βββ __main__.py # Python module entry point
β βββ main.py # CLI and server management
β βββ server.py # MCP server implementation
β βββ stackoverflow_client.py # StackOverflow API client
βββ tests/ # Test files
βββ README.md # This file
This package follows Semantic Versioning:
# Update version
npm version patch|minor|major
# Publish to npm
npm publish
# Create GitHub release
git push --tags
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ for the developer community
FAQs
StackOverflow MCP server for querying programming Q&A using FastMCP - npx wrapper for Python package
The npm package @notalk-tech/stackoverflow-mcp receives a total of 5 weekly downloads. As such, @notalk-tech/stackoverflow-mcp popularity was classified as not popular.
We found that @notalk-tech/stackoverflow-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isnβt whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.