# TokenOS Smart Contract Audit

> TokenOS Smart Contract Audit is an MCP server for legal and government. Heuristic security scan for Solidity and Anchor contracts, returning findings and a grade. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Website:** https://tokenos.ai/mcp/contract-audit
- **MCP Registry name:** ai.tokenos/contract-audit
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

The server takes pasted Solidity or Solana Anchor source and runs a heuristic pass over it, flagging patterns such as reentrancy, missing access control, tx.origin use, delegatecall, weak randomness, unchecked calls and missing signer, owner or PDA bump checks. Each finding comes with a severity, line numbers and a suggested fix, and the scan ends with an overall letter grade.

The server is stateless and needs no authentication: an MCP client connects over streamable HTTP using JSON-RPC 2.0. According to the product page, submitted code is analysed in memory and not stored, and tool calls are logged only in aggregate. The page also notes the same server is exposed for ChatGPT at a separate endpoint.

It suits developers and reviewers who want a quick first pass on a contract before deeper review. The page explicitly treats results as findings to verify rather than a guarantee of safety, and recommends a professional audit for contracts that will hold funds.

## Features

- **Heuristic vulnerability scan:** Checks Solidity and Anchor code for common patterns such as reentrancy, tx.origin and delegatecall misuse.
- **Line-numbered findings:** Each finding lists its severity, the affected lines and a suggested fix.
- **Letter grade summary:** An overall letter grade summarises the scan result.
- **In-memory analysis:** Pasted code is analysed in memory and, per the page, is not stored.
- **Streamable HTTP access:** Stateless JSON-RPC 2.0 endpoint over streamable HTTP with no authentication required.

## Good for

- Pre-screening a Solidity contract for common access-control or reentrancy issues before a formal audit
- Checking an Anchor program for missing signer, owner or PDA bump validation
- Asking an AI assistant whether a pasted ERC-20 implementation has obvious security problems

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http contract-audit https://tokenos.ai/api/mcp/apps/contract-audit
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://tokenos.ai/api/mcp/apps/contract-audit
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "contract-audit": {
      "url": "https://tokenos.ai/api/mcp/apps/contract-audit"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "contract-audit": {
      "type": "http",
      "url": "https://tokenos.ai/api/mcp/apps/contract-audit"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "contract-audit": {
      "serverUrl": "https://tokenos.ai/api/mcp/apps/contract-audit"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "contract-audit": {
      "type": "http",
      "url": "https://tokenos.ai/api/mcp/apps/contract-audit"
    }
  }
}
```

## Tools

- `quick_audit`: Static heuristic scan of a Solidity or Solana (Anchor / Rust) contract: findings with severity, line numbers and fixes, plus a letter grade.

## FAQ

### Does the server store the code I submit?

The product page says submitted code is analysed in memory and never stored, and that tool calls are logged only in aggregate (tool name, latency, success).

### Does it require an account or API key?

The page states the server is stateless with no authentication.

### Can the results be treated as a full security guarantee?

No. The page says results are heuristic findings to verify, and recommends a professional audit for contracts that will hold funds.

### How do I add TokenOS Smart Contract Audit to Claude Code?

Run this command in your terminal: claude mcp add --transport http contract-audit https://tokenos.ai/api/mcp/apps/contract-audit

### What are the best alternatives to TokenOS Smart Contract Audit?

The closest alternatives to TokenOS Smart Contract Audit are Diogenes Web3, DeFi & 402 Security MCP, Haris Guardian - Solana Token Risk Check, Agent Token Check, AuditAgent and Kestrova Solidity Security Scan.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Diogenes Web3, DeFi & 402 Security MCP](https://ai-powered.com/mcp/diogenes-web3-defi-and-402-security-mcp): Diogenes Web3, DeFi & 402 Security MCP is a freemium MCP server for finance and payments.
- [Haris Guardian - Solana Token Risk Check](https://ai-powered.com/mcp/haris-guardian-solana-token-risk-check): Haris Guardian - Solana Token Risk Check is a freemium MCP server for security.
- [Agent Token Check](https://ai-powered.com/mcp/agent-token-check): Agent Token Check is a paid MCP server for security.
- [AuditAgent](https://ai-powered.com/mcp/auditagent): AuditAgent is a paid MCP server for security.
- [Kestrova Solidity Security Scan](https://ai-powered.com/mcp/kestrova-solidity-security-scan): Kestrova Solidity Security Scan is a freemium MCP server for security.
- [Solidity Smart Contract Escrow Auditor](https://ai-powered.com/mcp/solidity-smart-contract-escrow-auditor): Solidity Smart Contract Escrow Auditor is a freemium MCP server for legal and government.
- [Pre-transaction Safety Checks (Tanod)](https://ai-powered.com/mcp/pre-transaction-safety-checks-tanod): Pre-transaction Safety Checks (Tanod) is a freemium MCP server for security.
- [Solana Rent & Rug Shield MCP Gateway](https://ai-powered.com/mcp/solana-rent-and-rug-shield-mcp-gateway-2): Solana Rent & Rug Shield MCP Gateway is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/tokenos-smart-contract-audit
