1. Conduid
  2. Security
  3. io.github.sapiom/mcp
MCP server · Security

io.github.sapiom/mcp

Sapiom MCP server — authentication, verification, and API tools

Unclaimed security
37Low

Scored 6 months ago · breakdown

About io.github.sapiom/mcp

io.github.sapiom/mcp is an MCP server in the Security category: sapiom MCP server — authentication, verification, and API tools.

Install

Claude Code
claude mcp add io-github-sapiom-mcp -- npx -y @sapiom/mcp
npx
npx -y @sapiom/mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about io.github.sapiom/mcp

Powered by Claude · Grounded in docs

I know everything about io.github.sapiom/mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Sapiom SDK

TypeScript

⚠️ Beta Status: Currently in v0.x (beta). API may change before v1.0.0. Production-ready and actively maintained.

TypeScript SDK for building AI agents and applications with the Sapiom API. Provides seamless payment handling, authorization flows, and framework integrations.

📦 Packages

This is a monorepo containing multiple focused packages. Install only what you need:

Core Package

Package Version Description
@sapiom/core v0.1.1 Core transaction client, handlers, and utilities

HTTP Client Integrations

Package Version Description
@sapiom/axios v0.1.1 Axios HTTP client integration
@sapiom/fetch v0.1.1 Native Fetch API integration
@sapiom/node-http v0.1.2 Node.js HTTP/HTTPS integration

Framework Integrations

Package Version LangChain Description
@sapiom/langchain v0.1.1 v1.x LangChain v1.x integration (recommended)
@sapiom/langchain-classic v0.1.1 v0.3+ LangChain v0.x integration (legacy)

Coming Soon

  • @sapiom/mastra - Mastra framework integration
  • @sapiom/langgraph - LangGraph integration
  • @sapiom/openai - OpenAI SDK integration

🚀 Quick Start

New to Sapiom? Check out the examples folder for complete setup instructions and working demos.

For Axios Users

npm install @sapiom/axios axios
import axios from 'axios';
import { createSapiomClient } from '@sapiom/axios';

const client = createSapiomClient(axios.create({
  baseURL: 'https://api.example.com'
}));

const response = await client.get('/premium-endpoint');

For Fetch Users

npm install @sapiom/fetch
import { createSapiomFetch } from '@sapiom/fetch';

const fetch = createSapiomFetch();
const response = await fetch('https://api.example.com/data');

For LangChain v1.x Users

npm install @sapiom/langchain langchain
import { createAgent } from "langchain";
import { createSapiomMiddleware } from "@sapiom/langchain";

const agent = createAgent({
  model: "gpt-4",
  tools: [getWeather, sendEmail],
  middleware: [
    createSapiomMiddleware({
      apiKey: process.env.SAPIOM_API_KEY,
    }),
  ],
});

const result = await agent.invoke({
  messages: [{ role: "user", content: "What's the weather?" }],
});

For LangChain v0.x Users (Legacy)

npm install @sapiom/langchain-classic
import { createSapiomReactAgent } from '@sapiom/langchain-classic';

const agent = await createSapiomReactAgent(
  { llm: new ChatOpenAI({ model: "gpt-4" }), tools: [...] },
  { apiKey: process.env.SAPIOM_API_KEY }
);

const response = await agent.invoke({ messages: [...] });

For Direct API Access

If you only need the transaction client without HTTP integrations:

npm install @sapiom/core
import { SapiomClient } from '@sapiom/core';

const client = new SapiomClient({
  apiKey: process.env.SAPIOM_API_KEY
});

const transaction = await client.transactions.create({
  service: 'api',
  action: 'call',
  resource: 'completion'
});

📚 Documentation

🏗️ Package Architecture

@sapiom/core              Core transaction API & utilities
    ↑
    ├── @sapiom/axios     Axios integration
    ├── @sapiom/fetch     Fetch integration
    ├── @sapiom/node-http Node HTTP integration
    └── @sapiom/langchain LangChain integration

All integration packages depend on @sapiom/core but are independent of each other.

🔧 Version Compatibility

LangChain Support

Package LangChain Version Status
@sapiom/langchain v1.x ✅ Recommended
@sapiom/langchain-classic v0.3+ ✅ Legacy Support
  • New projects: Use @sapiom/langchain with LangChain v1.x
  • Existing v0.x projects: Use @sapiom/langchain-classic (no changes needed)

🛠️ Development

This is a pnpm workspace monorepo.

Setup

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Lint and format
pnpm lint
pnpm format

Package Scripts

# Build specific package
pnpm --filter @sapiom/core build
pnpm --filter @sapiom/axios build

# Test specific package
pnpm --filter @sapiom/langchain test

# Run in watch mode
pnpm --filter @sapiom/core dev

Publishing

We use Changesets for version management:

# Create a changeset
pnpm changeset

# Version packages
pnpm version-packages

# Publish to npm
pnpm release

🤝 Contributing

Contributions welcome! Please read our Contributing Guide first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT © Sapiom

🔗 Links

🌟 Features

  • ✅ Modular architecture - Install only what you need
  • ✅ Lightweight core - Minimal dependencies and small footprint
  • ✅ HTTP client agnostic - Works with Axios, Fetch, Node HTTP
  • ✅ Framework integrations - LangChain, Mastra (coming soon)
  • ✅ Automatic payment handling - 402 Payment Required flows
  • ✅ Pre-emptive authorization - Protect endpoints before access
  • ✅ TypeScript native - Full type safety
  • ✅ Tree-shakeable - Optimal bundle sizes
  • ✅ Node.js 18+ - Native fetch support

🗺️ Roadmap

  • Core transaction API
  • Axios integration
  • Fetch integration
  • Node.js HTTP integration
  • LangChain v0.x integration
  • LangChain v1.x integration (middleware-based)
  • GitHub Actions CI/CD
  • Mastra integration
  • LangGraph integration
  • OpenAI SDK integration
  • Browser support (via bundlers)
  • WebSocket support for streaming

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About io.github.sapiom/mcp

How do I install io.github.sapiom/mcp?

Run claude mcp add io-github-sapiom-mcp -- npx -y @sapiom/mcp, then add the server to your MCP client's configuration.

Is io.github.sapiom/mcp safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.sapiom/mcp still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.