Skip to main content
Glama
CodexVeritax

stackoverflow-mcp-server

by CodexVeritax

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RETRY_AFTER_MSNoDelay after hitting rate limit2000
RATE_LIMIT_WINDOW_MSNoRate limit window in milliseconds60000
MAX_REQUEST_PER_WINDOWNoMaximum requests per rate limit window30
STACK_EXCHANGE_API_KEYYesStack Exchange API key required for higher request quota

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
advanced_search

Advanced search for Stack Overflow questions with many filter options.

Args:
    query (Optional[str]): Free-form search query
    tags (Optional[List[str]]): List of tags to filter by
    excluded_tags (Optional[List[str]]): List of tags to exclude
    min_score (Optional[int]): Minimum score threshold
    title (Optional[str]): Text that must appear in the title
    body (Optional[str]): Text that must appear in the body
    answers (Optional[int]): Minimum number of answers
    has_accepted_answer (Optional[bool]): Whether questions must have an accepted answer
    views (Optional[int]): Minimum number of views
    url (Optional[str]): URL that must be contained in the post
    user_id (Optional[int]): ID of the user who must own the questions
    is_closed (Optional[bool]): Whether to return only closed or open questions
    is_wiki (Optional[bool]): Whether to return only community wiki questions
    is_migrated (Optional[bool]): Whether to return only migrated questions
    has_notice (Optional[bool]): Whether to return only questions with post notices
    from_date (Optional[datetime]): Earliest creation date
    to_date (Optional[datetime]): Latest creation date
    sort_by (Optional[str]): Field to sort by (activity, creation, votes, relevance)
    include_comments (Optional[bool]): Whether to include comments in results
    response_format (Optional[str]): Format of response ("json" or "markdown")
    limit (Optional[int]): Maximum number of results to return
    ctx (Context): The context is passed automatically by the MCP
    
Returns:
    str: Formatted search results
search_by_query

Search Stack Overflow for questions matching a query.

Args:
    query (str): The search query
    tags (Optional[List[str]]): Optional list of tags to filter by (e.g., ["python", "pandas"])
    excluded_tags (Optional[List[str]]): Optional list of tags to exclude
    min_score (Optional[int]): Minimum score threshold for questions
    title (Optional[str]): Text that must appear in the title
    body (Optional[str]): Text that must appear in the body
    has_accepted_answer (Optional[bool]): Whether questions must have an accepted answer
    answers (Optional[int]): Minimum number of answers
    sort_by (Optional[str]): Field to sort by (activity, creation, votes, relevance)
    include_comments (Optional[bool]): Whether to include comments in results
    response_format (Optional[str]): Format of response ("json" or "markdown")
    limit (Optional[int]): Maximum number of results to return
    ctx (Context): The context is passed automatically by the MCP

Returns:
    str: Formatted search results
search_by_error

Search Stack Overflow for solutions to an error message

Args:
    error_message (str): The error message to search for
    language (Optional[str]): Programming language (e.g., "python", "javascript")
    technologies (Optional[List[str]]): Related technologies (e.g., ["react", "django"])
    excluded_tags (Optional[List[str]]): Optional list of tags to exclude
    min_score (Optional[int]): Minimum score threshold for questions
    has_accepted_answer (Optional[bool]): Whether questions must have an accepted answer
    answers (Optional[int]): Minimum number of answers
    include_comments (Optional[bool]): Whether to include comments in results
    response_format (Optional[str]): Format of response ("json" or "markdown")
    limit (Optional[int]): Maximum number of results to return
    ctx (Context): The context is passed automatically by the MCP

Returns:
    str: Formatted search results
get_question

Get a specific Stack Overflow question by ID.

Args:
    question_id (int): The Stack Overflow question ID
    include_comments (Optional[bool]): Whether to include comments in results
    response_format (Optional[str]): Format of response ("json" or "markdown")
    ctx (Context): The context is passed automatically by the MCP

Returns:
    str: Formatted question details
analyze_stack_trace

Analyze a stack trace and find relevant solutions on Stack Overflow.

Args:
    stack_trace (str): The stack trace to analyze
    language (str): Programming language of the stack trace
    excluded_tags (Optional[List[str]]): Optional list of tags to exclude
    min_score (Optional[int]): Minimum score threshold for questions
    has_accepted_answer (Optional[bool]): Whether questions must have an accepted answer
    answers (Optional[int]): Minimum number of answers
    include_comments (Optional[bool]): Whether to include comments in results
    response_format (Optional[str]): Format of response ("json" or "markdown")
    limit (Optional[int]): Maximum number of results to return
    ctx (Context): The context is passed automatically by the MCP
    
Returns:
    str: Formatted search results

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodexVeritax/stackoverflow-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server