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

@codespar/mcp-culqi

v0.2.1

Published

MCP server for Culqi — Peru's default PSP (the Stripe of Peru). Charges, subscriptions, customers, cards, Yape / PagoEfectivo orders.

Readme

@codespar/mcp-culqi

MCP server for Culqi — Peru's default PSP.

Culqi is the Stripe of Peru: the standard rail for Peruvian D2C brands and SaaS. It ships CulqiOnline (hosted checkout), CulqiLink (payment links), and CulqiFull (subscriptions). Adding Culqi brings Peru into the CodeSpar catalog alongside Mexico, Brazil, Colombia, Argentina, and Chile.

Tools (20)

| Tool | Purpose | |---|---| | create_token | Tokenize a card (POST /tokens). | | create_charge | Create a charge (POST /charges). | | get_charge | Retrieve a charge by Culqi id. | | list_charges | List charges (GET /charges) with optional filters. | | capture_charge | Capture a previously-authorized charge (POST /charges/{id}/capture). | | refund_charge | Refund a captured charge (POST /refunds). | | get_refund | Retrieve a refund by id (GET /refunds/{id}). | | create_customer | Create a customer record (POST /customers). | | get_customer | Retrieve a customer by Culqi id (GET /customers/{id}). | | list_customers | List customers (GET /customers) with optional filters passed as query params: first_name, last_name, email,... | | create_card | Attach a tokenized card to a customer for reuse (POST /cards). | | delete_card | Detach a saved card from its customer (DELETE /cards/{id}). | | create_order | Create an order (POST /orders) for non-card payment methods — Yape, PagoEfectivo (Cash), bank transfer. | | confirm_order | Confirm an unpaid order (POST /orders/{id}/confirm). | | list_orders | List orders (GET /orders) with optional filters passed as query params: order_number, state (created, paid,... | | create_plan | Create a subscription plan (POST /plans). | | create_subscription | Subscribe a customer's saved card to a plan (POST /subscriptions). | | cancel_subscription | Cancel an active subscription (DELETE /subscriptions/{id}). | | list_events | List webhook events (GET /events) with optional filters. | | get_event | Retrieve a single webhook event by id (GET /events/{id}). |

Install

npm install @codespar/mcp-culqi

Environment

CULQI_SECRET_KEY="sk_test_..."   # or sk_live_... for production

Culqi has no separate sandbox URL — the key prefix (sk_test_ vs sk_live_) selects the environment.

Authentication

Bearer token on every request:

Authorization: Bearer <CULQI_SECRET_KEY>
Content-Type: application/json

Base URL: https://api.culqi.com/v2.

Run

# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-culqi

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-culqi

Notes

  • Amounts are in cents of the currency (e.g. 1000 = S/ 10.00 PEN).
  • Currencies supported: PEN, USD.
  • Tokenization of raw card data is typically done client-side (culqi.js / mobile SDKs). The create_token tool is primarily for test scripts — never send real PANs from a backend without PCI scope.
  • Subscriptions require tyc: true (terms & conditions acceptance) on creation.

License

MIT