pinion-os
Client SDK, Claude plugin and skill framework for the Pinion protocol. x402 micropayments on Base.
claude mcp add --transport stdio chu2bard-pinion-os npx pinion-os \ --env PINION_PRIVATE_KEY="your-wallet-private-key"
How to use
Pinion OS provides a Node.js SDK and a set of MCP-compatible endpoints to enable x402 payments and on-chain skills for your app or Claude agent. The server handles signing, payment negotiation, and verification with a facilitator, allowing your code or agent to call into skill endpoints without manually managing payments. The MCP plugin exposes twelve tools such as pinion_balance, pinion_price, pinion_wallet, pinion_chat, pinion_send, pinion_trade, pinion_fund, pinion_pay_service, pinion_spend_limit, pinion_unlimited, and pinion_unlimited_verify. You can run the server directly via npx pinion-os or use it as an MCP plugin for Claude, enabling your agent to query balances, look up prices, manage wallets, chat with the agent, execute token transfers, perform trades, fund wallets, and access paid external services using x402 payments.
How to install
Prerequisites:
- Node.js installed (recommended latest LTS)
- npm or pnpm available
Installation steps:
- Install the Pinion OS package from npm:
npm install pinion-os
- Ensure you have a wallet private key with ETH for gas and USDC for Base payments. Set the environment variable PINION_PRIVATE_KEY when running tools that require authentication:
export PINION_PRIVATE_KEY=0xYOUR_PRIVATE_KEY
- Start using Pinion OS in code or via MCP plugin:
- In code:
node -e "import('pinion-os').then(async ({ PinionClient }) => {
const p = new PinionClient({ privateKey: process.env.PINION_PRIVATE_KEY });
console.log(await p.skills.price('ETH'));
})"
- As MCP server (via npx):
npx pinion-os
- If you plan to embed as Claude MCP plugin, configure the MCP host with npx pinion-os and provide PINION_PRIVATE_KEY when prompted.
Additional notes
Notes and tips:
- The server operates on Base network with x402 payments. Each server call may incur a small USDC cost settled automatically.
- Set PINION_PRIVATE_KEY in your environment to enable wallet-based signing. Without it, some operations may be unavailable.
- The MCP config example positions the Pinion MSP under the key 'pinion', but you can rename it as needed for your MCP host. The command typically uses npx pinion-os; you can also run with a fully specified node path if needed.
- For Claude Desktop or Cursor IDE integration, ensure the env var is provided in the respective config files or startup scripts so the agent can sign and authorize payments.
- The SDK supports both direct usage (pinion.skills.*) and payX402Service for calling external x402 endpoints. Ensure your external services accept x402 payments and respond within the expected payload contracts.
- If you upgrade or change the server, verify compatibility of the x402 version and any dependent express adapters (v1 or v2) used by your skill servers.
Related MCP Servers
git
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
NagaAgent
A simple yet powerful agent framework for personal assistants, designed to enable intelligent interaction, multi-agent collaboration, and seamless tool integration.
lucid-agents
Lucid Agents Commerce SDK. Bootstrap AI agents in 60 seconds that can pay, sell, and participate in agentic commerce supply chains. Our protocol agnostic SDK provides CLI-generated templates and drop-in adapters for Hono, Express, Next.js, and TanStack, giving you instant access to crypto/fiat payment rails (AP2, A2A, x402, ERC8004).
mcp-task-manager
A local Model Context Protocol (MCP) server providing backend tools for client-driven project and task management using a SQLite database.
obsidian
MCP server for Obsidian vault management - enables Claude and other AI assistants to read, write, search, and organize your notes
x402-deploy
Turn any API or MCP server into a paid service with x402