npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@answer-engine/mcp-server

v1.0.2

Published

MCP server for Answer Engine - search, retrieve, and research content

Readme

@answer-engine/mcp-server

Model Context Protocol (MCP) server for Answer Engine — gives AI assistants like Claude access to your content library.

Install

npm install -g @answer-engine/mcp-server

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "answer-engine": {
      "command": "answer-engine-mcp",
      "env": {
        "ANSWER_ENGINE_API_KEY": "ae_live_your_key_here",
        "ANSWER_ENGINE_API_URL": "http://localhost:5050"
      }
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "answer-engine": {
      "command": "answer-engine-mcp",
      "env": {
        "ANSWER_ENGINE_API_KEY": "ae_live_your_key_here",
        "ANSWER_ENGINE_API_URL": "http://localhost:5050"
      }
    }
  }
}

npx (no install)

{
  "mcpServers": {
    "answer-engine": {
      "command": "npx",
      "args": ["-y", "@answer-engine/mcp-server"],
      "env": {
        "ANSWER_ENGINE_API_KEY": "ae_live_your_key_here",
        "ANSWER_ENGINE_API_URL": "http://localhost:5050"
      }
    }
  }
}

Configuration

| Environment Variable | Description | Default | |---|---|---| | ANSWER_ENGINE_API_KEY | Your Answer Engine API key (required) | — | | ANSWER_ENGINE_API_URL | API base URL | http://localhost:5050 |

Tools

The MCP server exposes 7 tools that AI assistants can call:

search_content

Search your content library using fulltext, semantic, or hybrid search.

| Parameter | Type | Required | Description | |---|---|---|---| | query | string | Yes | Search query text | | searchType | enum | No | hybrid (default), fulltext, semantic | | limit | number | No | Max results (1-50, default 10) | | include | string[] | No | Fields: summary, content, tags, metadata | | filters.contentTypes | string[] | No | Filter by content types | | filters.tags | string[] | No | Filter by tag slugs | | filters.dateFrom | string | No | ISO date — created after | | filters.dateTo | string | No | ISO date — created before |

Cost: 1 credit

get_content

Retrieve specific content items by ID.

| Parameter | Type | Required | Description | |---|---|---|---| | ids | string[] | Yes | Content item UUIDs (1-50) | | include | string[] | No | Fields: summary, content, tags, metadata, children, analysis |

Cost: 1 credit

list_tags

List all available tags, content types, and capabilities. Useful for discovering what's in your library before searching.

No parameters required.

Cost: Free (0 credits)

summarize_collection

Use AI to summarize or analyze content from your library.

| Parameter | Type | Required | Description | |---|---|---|---| | prompt | string | Yes | What to summarize or analyze | | filter.contentTypes | string[] | No | Filter by content types | | filter.tags | string[] | No | Filter by tag slugs | | filter.dateFrom | string | No | ISO date filter | | filter.dateTo | string | No | ISO date filter | | limit | number | No | Max items to analyze (1-100, default 20) |

Cost: 10 credits

scrape_url

Scrape a web page and save it to your content library.

| Parameter | Type | Required | Description | |---|---|---|---| | url | string | Yes | URL to scrape | | includeHtml | boolean | No | Include raw HTML (default false) |

Cost: 1 credit

crawl_domain

Crawl multiple pages from a domain.

| Parameter | Type | Required | Description | |---|---|---|---| | domain | string | Yes | Domain to crawl (e.g., example.com) | | maxPages | number | No | Max pages (1-100, default 10) |

Cost: 1 credit per page

web_search

Search the web and optionally scrape full content from results.

| Parameter | Type | Required | Description | |---|---|---|---| | query | string | Yes | Search query | | site | string | No | Limit to specific site | | scrapeResults | boolean | No | Scrape content from result URLs (default false) |

Cost: 1 credit

Resources

The server also exposes 2 MCP resources:

| Resource | URI | Description | |---|---|---| | Content Schema | answer-engine://schema | Content types, tags, capabilities, date range | | Content Item | answer-engine://content/{id} | Full content item by ID |

Error Handling

Errors are returned with isError: true in the MCP response with clear messages:

| HTTP Status | Error Message | |---|---| | 401 | Authentication failed. Check your ANSWER_ENGINE_API_KEY. | | 402 | Insufficient credits. | | 429 | Rate limit exceeded. |

Every successful response includes credit usage:

Credits charged: 1 | Credits remaining: 99

Development

# Clone the repo
git clone https://github.com/the-answerai/answer-engine.git
cd answer-engine

# Install and build
pnpm install
pnpm mcp-server:build

# Test with stdio
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | \
  ANSWER_ENGINE_API_KEY=your_key node packages/mcp-server/dist/index.js

# Run tests
cd packages/mcp-server && pnpm test

License

MIT