Skip to main content
Glama
DynamicDeals

Gunsnation MCP

by DynamicDeals

Gunsnation MCP Server

The Gunsnation MCP Server is a lightweight integration layer that exposes the Gunsnation firearms catalog to AI assistants through the Model Context Protocol (MCP). It allows compatible AI clients to search, filter, and retrieve detailed firearm information using structured tool calls instead of manual API integration.

Designed for speed and simplicity, the server connects directly to the Gunsnation API and provides a clean, standardized interface for querying products by brand, model, UPC, or category. Assistants can also fetch full specifications, images, and metadata for individual firearms, making it ideal for retail, comparison, and product discovery workflows.

Built in TypeScript and distributed as an npm package, the server is easy to install and run locally or in hosted environments. With just an API key and an MCP-compatible client, developers can quickly add real-time firearm data access to their AI tools.

Key features • MCP-compatible firearm search and lookup tools • Real-time access to the Gunsnation product catalog • Simple installation via npm or npx • Lightweight, developer-friendly TypeScript codebase • Secure API-key authentication

This project is ideal for developers building AI shopping assistants, retail tools, or product discovery experiences that require up-to-date firearm data from Gunsnation.

Features

  • Search Firearms: Search the firearms database by name, brand, model, UPC, or category

  • Get Firearm Details: Retrieve comprehensive details about a specific firearm including specifications and images

Related MCP server: Catalyst MCP Server

Installation

npm install gunsnation-mcp

Or use directly with npx:

npx gunsnation-mcp

Configuration

Environment Variables

  • GUNSNATION_API_KEY (required): Your Gunsnation API key

  • GUNSNATION_API_URL (optional): Custom API URL (defaults to https://api.gunsnation.com)

Claude Desktop Configuration

Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "gunsnation": {
      "command": "npx",
      "args": ["gunsnation-mcp"],
      "env": {
        "GUNSNATION_API_KEY": "your_api_key_here"
      }
    }
  }
}

Available Tools

search_firearms

Search the Gunsnation firearms database.

Parameters:

  • query (optional): Search query for firearm name, brand, model, or UPC

  • category (optional): Category filter (e.g., "Handguns", "Rifles", "Shotguns")

  • limit (optional): Maximum number of results (1-100, default: 20)

  • offset (optional): Number of results to skip for pagination

Example:

Search for Glock handguns: { "query": "glock", "category": "Handguns", "limit": 10 }

get_firearm

Get detailed information about a specific firearm.

Parameters:

  • id (required): The ID of the firearm to retrieve

Example:

Get firearm details: { "id": 12345 }

Getting an API Key

  1. Create an account at gunsnation.com

  2. Go to Settings

  3. Click "Generate API Key" in the API Key section

  4. Copy your API key and keep it secure

Rate Limits

  • 60 requests per minute per API key

Development

# Install dependencies
npm install

# Build
npm run build

# Run in development mode
GUNSNATION_API_KEY=your_key npm run dev

License

MIT

Available Tools

2 tools
get_firearmA

Get detailed information about a specific firearm by its ID. Returns comprehensive details including specifications, description, and images.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the firearm to retrieve

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full disclosure burden. It adds valuable context about return values (specifications, description, images) compensating for the lack of output schema. However, it omits other behavioral traits like error handling (what happens if ID is invalid?), authentication requirements, or rate limiting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The two-sentence structure is perfectly economical: the first establishes the action and required parameter, while the second describes the return payload. There is no redundant or filler text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter retrieval tool without output schema, the description is adequate. It compensates for the missing output schema by describing return contents. It could be improved by mentioning error states or the relationship to search_firearms, but it covers the essential contract.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description mentions 'by its ID' which aligns with but does not extend beyond the schema's parameter description. No additional semantic details (e.g., ID format, where to obtain valid IDs) are provided.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves detailed firearm information using a specific ID, with a distinct resource and action. However, it does not explicitly differentiate from sibling 'search_firearms' (e.g., stating this is for exact ID lookups versus search queries), keeping it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'by its ID' implies usage when an identifier is already known, suggesting when to use it versus the search sibling. However, it lacks explicit guidance such as 'use this when you have a firearm ID; use search_firearms to find IDs by name or criteria.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_firearmsA

Search the Gunsnation firearms database. Returns a list of firearms matching the search criteria with basic details including name, brand, caliber, action type, and price.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryNoSearch query for firearm name, brand, model, or UPC
categoryNoCategory filter (e.g., "Handguns", "Rifles", "Shotguns")
limitNoMaximum number of results (1-100, default: 20)
offsetNoNumber of results to skip for pagination

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It compensates adequately by disclosing the return structure ('basic details including name, brand, caliber...') since no output schema exists. However, it omits error handling behavior, rate limits, and authorization requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences total with zero waste. The first sentence establishes the operation and target, the second discloses the return value structure. Information is front-loaded and every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the 100% schema coverage and absence of output schema, the description adequately compensates by listing return fields. It meets expectations for a search tool but could be improved by noting error cases (e.g., no results found) or authentication requirements.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, establishing a baseline of 3. The description mentions 'search criteria' generally but does not add semantic context beyond the schema, such as query syntax examples or pagination strategy details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Search') and resource ('Gunsnation firearms database'). It implicitly distinguishes from sibling 'get_firearm' by emphasizing 'search criteria' and returning a 'list' versus a single item retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through the verb 'Search' versus the sibling's 'get', suggesting this is for finding multiple matches rather than specific ID lookup. However, it lacks explicit guidance on when to use this versus 'get_firearm' or prerequisites like authentication requirements.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv1.0.0
    • First observedget_firearm
    • First observedsearch_firearms

TDQS

A3.8/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have perfectly distinct purposes: one retrieves a specific firearm by ID, while the other performs a broad search across the database. No ambiguity exists between lookup-by-identifier and search-by-criteria operations.

Naming Consistency5/5

Both tools follow a consistent snake_case verb_noun pattern. The singular/plural distinction (get_firearm vs search_firearms) logically reflects their respective functions of retrieving one versus finding many.

Tool Count3/5

With only 2 tools, the server meets the minimum viable surface for a read-only database but feels thin. It covers basic retrieval workflows but lacks browsing, listing, or filtering tools that would enrich the firearms domain.

Completeness3/5

Core read operations (search and get) are present, but notable gaps exist for discovery workflows such as browsing categories, listing manufacturers, or filtering by specific attributes like caliber or action type. Agents can work around these with broad searches, but the surface is minimal.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to discover, install, configure, and manage MCP servers through natural language conversation, automating tedious manual setup across multiple clients.
    11
    MIT
  • A
    license
    A
    quality
    F
    maintenance
    MCP server that provides AI assistants with real-time, current information about AI models from OpenAI, Anthropic, and Google, including pricing, capabilities, and context windows.
    4
    MIT