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

@lumenstrust/mcp-server

v1.2.0

Published

MCP Server for LumenTrust — AI Agent trust, payments & vault on Stellar

Readme

@lumenstrust/mcp-server

MCP Server for LumenTrust — on-chain trust scores, programmable spending vaults, and x402 micropayments for AI agents on the Stellar network.

Give your AI (Claude, GPT, Cursor, LangChain...) the ability to pay for data autonomously using USDC on Stellar, while enforcing spending policies and building a verifiable reputation.

npm License: MIT


What This Does

Your AI agent gets 6 tools:

| Tool | What it does | |------|-------------| | agentvault_paid_fetch | Calls any x402-paywalled API — auto-pays with USDC if needed | | agentvault_check_score | Checks on-chain trust score (0–100) from Soroban smart contract | | agentvault_get_balance | Checks USDC vault balance | | agentvault_discover | Discovers affordable services from the LumenTrust marketplace | | agentvault_get_history | Views recent payment transactions | | agentvault_vault_status | Checks vault spending policy and daily/weekly limits |


Prerequisites

  1. Register your agent at lumentrust.coresolution.digital
  2. Get a Stellar keypair (public key starting G..., secret key starting S...)
  3. Create a spending vault and deposit USDC via the dashboard

That's it. No additional API keys, no subscriptions.


Quick Start

No installation needed. Use npx directly.

Claude Desktop

Edit: ~/Library/Application Support/Claude/claude_desktop_config.json
(Windows: %APPDATA%\Claude\claude_desktop_config.json)

{
  "mcpServers": {
    "lumentrust": {
      "command": "npx",
      "args": ["-y", "@lumenstrust/mcp-server"],
      "env": {
        "AGENT_ID": "G_YOUR_AGENT_PUBLIC_KEY",
        "AGENT_SECRET_KEY": "S_YOUR_AGENT_SECRET_KEY",
        "API_URL": "https://lumentrust.coresolution.digital/api"
      }
    }
  }
}

Restart Claude Desktop. The 6 LumenTrust tools will appear automatically.


Claude Code

Create .claude/mcp.json in your project root:

{
  "mcpServers": {
    "lumentrust": {
      "command": "npx",
      "args": ["-y", "@lumenstrust/mcp-server"],
      "env": {
        "AGENT_ID": "G_YOUR_AGENT_PUBLIC_KEY",
        "AGENT_SECRET_KEY": "S_YOUR_AGENT_SECRET_KEY",
        "API_URL": "https://lumentrust.coresolution.digital/api"
      }
    }
  }
}

Cursor

Create .cursor/mcp.json in your project root — same config as above.


Windsurf

Add to your Windsurf MCP settings:

{
  "mcpServers": {
    "lumentrust": {
      "command": "npx",
      "args": ["-y", "@lumenstrust/mcp-server"],
      "env": {
        "AGENT_ID": "G_YOUR_AGENT_PUBLIC_KEY",
        "AGENT_SECRET_KEY": "S_YOUR_AGENT_SECRET_KEY",
        "API_URL": "https://lumentrust.coresolution.digital/api"
      }
    }
  }
}

LangChain / LangGraph (Python)

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
    "lumentrust": {
        "command": "npx",
        "args": ["-y", "@lumenstrust/mcp-server"],
        "transport": "stdio",
        "env": {
            "AGENT_ID": "G_YOUR_AGENT_PUBLIC_KEY",
            "AGENT_SECRET_KEY": "S_YOUR_AGENT_SECRET_KEY",
            "API_URL": "https://lumentrust.coresolution.digital/api"
        }
    }
})

tools = await client.get_tools()

Direct Node.js

AGENT_ID=G... AGENT_SECRET_KEY=S... API_URL=https://lumentrust.coresolution.digital/api \
  npx @lumenstrust/mcp-server

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | AGENT_ID | Yes | Stellar public key of your agent (G...) | | AGENT_SECRET_KEY | Yes | Stellar secret key of your agent (S...) | | API_URL | No | LumenTrust API base URL (default: https://lumentrust.coresolution.digital/api) |


Tool Reference

agentvault_paid_fetch

Fetch data from an x402-paywalled service. If the service returns 402 Payment Required, the tool automatically signs a USDC transaction on Stellar and retries — the AI never needs to handle payment manually.

Parameters:
  url             (required) URL of the service
  method          GET | POST | PUT  (default: GET)
  body            Request body for POST/PUT
  maxAmountStroops Safety cap in stroops (1 USDC = 10,000,000 stroops)

Example prompt to Claude:

"Get the current weather in Jakarta using LumenTrust"


agentvault_check_score

Returns the agent's on-chain trust score from the Soroban reputation contract.

Score levels: new (0-19) → low (20-34) → neutral (35-54) → good (55-69) → trusted (70-84) → elite (85-100)

Example prompt:

"What is my current LumenTrust trust score?"


agentvault_get_balance

Returns current USDC balance available for spending in the vault.

Example prompt:

"How much USDC do I have left in my vault?"


agentvault_discover

Returns services from the LumenTrust marketplace that the agent can currently afford (filtered by vault balance). Optionally filter by category.

Categories: data, ai, analytics, finance, search, compute, iot, other

Example prompt:

"What services can I afford right now on LumenTrust?"


agentvault_get_history

Returns recent payment transactions with outcomes, amounts, and endpoints.

Example prompt:

"Show me my last 10 LumenTrust transactions"


agentvault_vault_status

Returns full vault status: balance, spending limits, daily/weekly usage, circuit breaker state, whitelist mode.

Example prompt:

"What are my current spending limits and how much have I spent today?"


How Trust Scores Work

Scores are calculated from real transaction history (not manually assigned):

score = 10 (base)
      + 0-60  (success ratio: successfulTxs / totalTxs × 60)
      + 0-20  (volume bonus: log₁₀-scaled USDC volume)
      + 0-10  (consistency: ≥5 txs → +4, ≥20 → +7, ≥50 → +10)
      - 3×disputed_txs

New agents get 2 free trials per service before trust score requirements kick in.


Available Demo Services

These x402 services are live and ready to pay from day one:

| Service | Endpoint | Price | |---------|----------|-------| | Real-Time Weather | /api/weather?lat=X&lon=Y | 0.01 USDC | | AI Text Summarizer | POST /api/summarize | 0.02 USDC | | Statistical Insights | POST /api/insight | 0.05 USDC | | Live Crypto Prices | /api/crypto | 0.01 USDC | | Forex Exchange Rates | /api/forex | 0.01 USDC | | Tech News Headlines | /api/news | 0.02 USDC | | Web Search | /api/search?q=... | 0.03 USDC |

All endpoints at: https://lumentrust.coresolution.digital/demo


Architecture

Claude / LLM
    │
    │ MCP stdio transport
    ▼
@lumenstrust/mcp-server (this package)
    │
    │ HTTPS REST calls
    ▼
LumenTrust API (Express + PostgreSQL)
    │
    ├── Vault policy checks (8 layers)
    ├── Stellar USDC transaction signing
    ├── x402 payment loop (402 → sign → retry)
    └── Trust score recording (Soroban on-chain)

The MCP server is intentionally thin — all complex logic (Stellar signing, vault enforcement, reputation tracking) happens in the LumenTrust API, keeping this package lightweight and dependency-free.


Smart Contracts (Stellar Testnet)

| Contract | ID | |---|---| | Reputation | CCMK53O4WNJVVXWIPNEU2CNWB4U4RLUQ4SEHFWJKH32K27F4ETRA4RND | | Vault | CCRSUFIDHRB4IRZOE2DMPOQYN5DSLHVFBUUBTEA3RSBZDU5MQ2R7FYG6 |

View on Stellar Expert


Links


License

MIT © LumenTrust