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

@phoenix-erp/mcp-server

v0.3.0

Published

MCP server for Phoenix ERP - AI-powered documentation with dev-guide and user-guide collections

Downloads

373

Readme

@phoenix-erp/mcp-server

MCP server for Phoenix ERP -- exposes dev-guide and user-guide documentation to AI assistants (Cursor, Claude, Windsurf) via the Model Context Protocol.

Quick Start

npx (stdio)

PHX_MCP_TOKEN=your-token npx -y @phoenix-erp/mcp

Cursor (stdio)

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "phoenix-erp": {
      "command": "npx",
      "args": ["-y", "@phoenix-erp/mcp"],
      "env": {
        "PHX_MCP_TOKEN": "your-token"
      }
    }
  }
}

Cursor (HTTP -- production)

{
  "mcpServers": {
    "phoenix-erp": {
      "type": "streamableHttp",
      "url": "https://mcp.phx-erp.cloud/mcp-server/mcp",
      "headers": {
        "Authorization": "Bearer your-phx-mcp-token"
      }
    }
  }
}

Cursor (HTTP -- with per-session OpenAI embeddings)

{
  "mcpServers": {
    "phoenix-erp": {
      "type": "streamableHttp",
      "url": "https://mcp.phx-erp.cloud/mcp-server/mcp",
      "headers": {
        "Authorization": "Bearer your-phx-mcp-token",
        "OPENAI-API-KEY": "sk-..."
      }
    }
  }
}

Tools

| Tool | Description | Parameters | |------|-------------|------------| | search_docs | Hybrid search (lexical + semantic) across ERP docs | query, category?, limit?, fuzzy?, mode? | | get_section | Get a section by document slug and path | document, section_path | | list_documents | List all docs, optionally by category | category? | | list_sections | Table of contents for a document | document, max_depth? | | get_code_examples | Find code examples by topic | query, language?, category? | | get_architecture | Architecture info, mermaid diagrams | topic | | get_file_map | File structure for a module | document, section? | | get_usage_stats | Get API usage statistics, cost breakdown, and optimization recommendations | period? |

Prompts

| Prompt | Description | Args | |--------|-------------|------| | onboard_developer | Step-by-step setup (clone, env, Docker) plus module brief | module | | implement_feature | Implementation guide | feature_description | | review_code | Code review checklist | code_context | | explain_feature | User-facing feature explanation | feature_name | | support_answer | Draft support response | user_question | | analyze_costs | AI-powered cost analysis with spending breakdown and recommendations to reduce waste | period? |

Resources

| URI | Description | |-----|-------------| | erp://docs | List of all documents (JSON) | | erp://dev-guide/{slug} | Full dev-guide document (markdown) | | erp://user-guide/{slug} | Full user-guide document (markdown) |

Embedding Providers

Search combines lexical (MiniSearch) and semantic (embeddings) with Reciprocal Rank Fusion.

| Provider | Quality | Requirements | |----------|---------|--------------| | OpenAI (recommended) | High | OPENAI_API_KEY | | Cohere (recommended) | High | COHERE_API_KEY | | Xenova (fallback) | Moderate | None (local) |

Per-session provider switching

Clients can send their own API key via headers at session initialization. The server selects the matching provider for that session.

| Header | Purpose | |--------|---------| | OPENAI-API-KEY | Client's OpenAI API key | | COHERE-API-KEY | Client's Cohere API key | | EMBEDDING-PROVIDER | Explicit override: xenova / openai / cohere |

Clients without these headers use the server's default provider. The server validates that the requested provider has pre-built embeddings and falls back to xenova if not.

Health Check & Usage Stats

GET /health returns version, active sessions, uptime, available/loaded embedding providers, memory stats, and usage totals.

GET /usage returns a full cost breakdown by provider, tool, search mode, top queries, duplicate queries, and optimization recommendations. Accepts an optional ?period=session|today|all query parameter.

Docker

docker build -f packages/server/Dockerfile -t phoenix-erp-mcp .
docker run -p 3100:3100 -e PHX_MCP_TOKEN=your-token phoenix-erp-mcp

For production with Traefik and multi-provider embeddings, see the monorepo documentation.

Environment Variables

| Variable | Required | Default | Purpose | |----------|----------|---------|---------| | PHX_MCP_TOKEN | Yes | -- | Authentication token | | PHX_MCP_PORT | No | 3100 | HTTP server port | | EMBEDDING_PROVIDER | No | auto-detect | xenova, openai, or cohere | | OPENAI_API_KEY | No | -- | OpenAI API key for embeddings | | COHERE_API_KEY | No | -- | Cohere API key for embeddings | | YOUTRACK_TOKEN | No | -- | Runtime refresh from YouTrack | | LOG_LEVEL | No | info | debug, info, warn, error | | USAGE_RETENTION_DAYS | No | 30 | Number of days to retain usage records before auto-cleanup | | USAGE_SAVE_INTERVAL_MS | No | 60000 | Interval (ms) between usage data flushes to disk |

License

MIT