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

mcp-latitude-prompts

v4.0.7

Published

Simplified MCP server for Latitude.so prompt management - 8 focused tools for push, pull, run, and manage prompts

Downloads

216

Readme

MCP server that bridges your AI assistant to Latitude.so prompt management. list, read, run, push, and pull PromptL prompts — all from inside a conversation. like prompt DevOps without leaving your editor.

npx mcp-latitude-prompts

npm node license


what it does

7 tools exposed over MCP stdio transport. your AI assistant gets full access to your Latitude prompt library.

| tool | what it does | |:---|:---| | list_prompts | list all prompt names in the LIVE version | | get_prompt | get full PromptL content by name | | run_prompt | execute a prompt with parameters, get response + token usage | | push_prompts | full sync — replace all LIVE prompts from a local folder of .promptl files | | pull_prompts | full sync — download all LIVE prompts to local .promptl files | | add_prompt | additive merge — add/update prompts without deleting others | | docs | query 52-topic embedded documentation on PromptL syntax and techniques |

  • pre-validation — every prompt is parsed with promptl-ai before push. if anything has errors, nothing gets deployed
  • 3-step transactional deploy — draft, push with SHA-256 content hashes, publish to LIVE
  • diff engine — only changed prompts get pushed, compared by content hash
  • dynamic tool descriptionsrun_prompt and add_prompt descriptions are built at startup with your actual prompt names and their {{ variables }}
  • 30-second prompt cache — force-refreshed after any mutation
  • 52-topic docs system — PromptL syntax, techniques (ReAct, CoT, ToT, RAG, etc.), recipes, provider configs

install

npm install -g mcp-latitude-prompts

or just run it directly:

npx mcp-latitude-prompts

or build from source:

git clone https://github.com/yigitkonur/mcp-latitude-prompts.git
cd mcp-latitude-prompts
pnpm install && pnpm build

configure

two required env vars:

export LATITUDE_API_KEY="your-api-key"       # from https://app.latitude.so/settings/api-keys
export LATITUDE_PROJECT_ID="your-project-id"

| variable | default | description | |:---|:---|:---| | LATITUDE_API_KEY | — | required. API key | | LATITUDE_PROJECT_ID | — | required. target project ID | | LATITUDE_BASE_URL | https://gateway.latitude.so | override API base URL | | DEBUG | — | true for all debug logs, or comma-separated module names |

config is loaded in priority order: ~/.mcp/configs.json < .env file < direct env vars.

global config file

optional. place at ~/.mcp/configs.json:

{
  "latitude": {
    "environments": {
      "LATITUDE_API_KEY": "your-key",
      "LATITUDE_PROJECT_ID": "your-project-id"
    }
  }
}

usage with Claude Desktop

add to your MCP client config:

{
  "mcpServers": {
    "latitude": {
      "command": "npx",
      "args": ["-y", "mcp-latitude-prompts"],
      "env": {
        "LATITUDE_API_KEY": "your-api-key",
        "LATITUDE_PROJECT_ID": "your-project-id"
      }
    }
  }
}

development

pnpm install
pnpm build                # compile TypeScript
pnpm mcp:stdio            # build + run stdio
pnpm mcp:inspect          # build + run with MCP inspector at localhost:3000
pnpm dev:stdio            # run with @modelcontextprotocol/inspector

logs go to ~/.mcp/data/<package-name>.<session-uuid>.log — stdout is reserved for the MCP stdio stream.

how push works

the deploy pipeline is transactional:

  1. read all .promptl files from your folder
  2. validate every prompt with promptl-ai — abort on any error
  3. compute diff against current LIVE (SHA-256 content hashes)
  4. POST /versions — create a named draft
  5. POST /versions/:uuid/push — submit changes
  6. POST /versions/:commitUuid/publish — publish to LIVE

add_prompt uses the same pipeline but merges new prompts into a temp copy of the existing set first — so nothing gets deleted.

project structure

src/
  index.ts        — entry point, env validation
  server.ts       — MCP server factory + stdio transport
  tools.ts        — all 7 tool definitions and handlers
  api.ts          — Latitude HTTP client, diff engine, validation
  types.ts        — TypeScript interfaces
  docs/
    index.ts      — 52-topic docs map, search, and lookup
    types.ts      — doc topic types
    help.ts       — server overview content
    metadata.ts   — topic search metadata
    core-syntax.ts, phase1.ts, phase2.ts, phase3.ts, techniques.ts, recipes.ts

troubleshooting

| problem | fix | |:---|:---| | server exits immediately | check LATITUDE_API_KEY and LATITUDE_PROJECT_ID are set | | push rejected | validation failed — check the error report for line/column details | | stale prompt list | cache TTL is 30s. any mutation forces an immediate refresh | | logs not appearing | logs go to file, not console. check ~/.mcp/data/ | | debug output needed | set DEBUG=true or DEBUG=api.ts,tools.ts for specific modules |

license

MIT