Back to Home
portalsprotocol icon

mcp-server

Verified Safe

by portalsprotocol

Overview

MCP server that allows AI agents to discover and access decentralized APIs (Portals) on the Solana blockchain, paying autonomously in USDC per use.

Installation

Run Command
npx -y @portalsprotocol/mcp-server

Environment Variables

  • PORTALS_WHITELIST
  • PORTALS_NETWORK
  • PORTALS_RPC

Security Notes

The server stores a Solana wallet locally (`~/.portals/wallet.json`) with mode 0600 permissions, which is good practice. It explicitly requires a `PORTALS_WHITELIST` to prevent agents from accessing arbitrary portals. Input validation for tool arguments is performed against fetched OpenAPI schemas using Ajv. The fetching of OpenAPI schemas via `axios.get` from whitelisted portal URLs (which are retrieved from on-chain registry) introduces a potential, though mitigated, risk if a whitelisted portal were to serve a malicious or extremely large schema designed to exploit `axios` or `ajv` parsers. The `refreshPortals` function, which includes these network calls, is invoked on every tool request, adding a slight performance overhead but no immediate critical security flaw.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-25

Tags

SolanaAI AgentsDecentralized APIsWeb3Tools