About pentagonal-mcp
pentagonal-mcp connects MCP clients to Pentagonal’s smart contract tools for token research, security audits, contract generation, fixes, and compilation. It covers Solidity and Anchor/Rust, with support for eight listed blockchains.
Key features
- 01Token and contract intelligence
- 02Eight-agent security audits
- 03Generate Solidity and Anchor/Rust
- 04Fix identified vulnerabilities
- 05Compile Solidity and estimate gas
- 06List chains and security rules
Use cases
- 01Inspect a token’s price and holders
- 02Audit a contract and review findings
- 03Generate a contract from a description
- 04Compile Solidity and review gas estimates
MCP support
Exposes Pentagonal’s contract research, auditing, generation, repair, compilation, and reference tools to MCP clients. The README shows stdio and HTTP connection options.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y pentagonal-mcpPENTAGONAL_API_KEYSecretPentagonal API key (optional — free tools work without it, paid tools accept x402 USDC on Base)Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
7Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| chain | enum | No | Target blockchainethereum | polygon | arbitrum | base | optimism | bsc | avalanche | solana |
| prompt | string | Yes | Natural language description of the smart contract to generate. Be specific about features, access control, and tokenomics. |
| solana_type | enum | No | For Solana only: "program" for Anchor/Rust programs, "token" for SPL token JSON configprogram | token |
| use_learned_rules | boolean | No | Inject self-learning security rules into generation prompt |
Details
From the project READMEpentagonal-mcp
MCP server for Pentagonal — the AI-powered smart contract forge.
Tools
| Tool | Description | Auth |
|---|---|---|
pentagonal_lookup | Token intelligence — price, holders, LP lock, honeypot, source code | Free (rate limited) |
pentagonal_audit | 8-agent security pen test with severity grouping and PoC exploits | $5 (credit or x402) |
pentagonal_generate | Generate contracts from natural language (Solidity + Anchor/Rust) | $5 (credit or x402) |
pentagonal_fix | Fix a specific vulnerability while preserving functionality | Free (rate limited) |
pentagonal_compile | Compile Solidity to ABI + bytecode + gas estimates | Free (rate limited) |
pentagonal_rules | View accumulated self-learning security rules | Free |
pentagonal_chains | List all supported blockchains | Free |
Supports Ethereum, Base, Polygon, Arbitrum, Optimism, BSC, Avalanche, and Solana.
Setup
Claude Desktop (stdio)
Add to claude_desktop_config.json:
{
"mcpServers": {
"pentagonal": {
"command": "npx",
"args": ["-y", "pentagonal-mcp"],
"env": {
"PENTAGONAL_KEY": "your-api-key"
}
}
}
}
Claude Code / Cursor / Windsurf (HTTP)
Add to your MCP config:
{
"mcpServers": {
"pentagonal": {
"type": "http",
"url": "https://www.pentagonal.ai/api/mcp",
"headers": {
"x-pentagonal-api-key": "your-api-key"
}
}
}
}
Get an API Key
- Sign in at pentagonal.ai
- Click your avatar → 🔑 API Keys
- Generate a key — it's shown once, copy it immediately
Payment Options
- Credits — $5 per audit or generate, buy via the web app (EVM or Solana)
- x402 — agents pay per-use with USDC on Base (no account needed)
- API key — use your credit balance programmatically
- Free tools — fix, compile, lookup, rules, chains are free for everyone
Links
- 🌐 pentagonal.ai
- 📦 GitHub
- 🐦 @Pentagonalai
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.