🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@clevername/clevername-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clevername/clevername-mcp

Local Clevername MCP bridge for stdio clients. Modern clients should connect directly to the Clevername MCP gateway with OAuth; this package remains available for token-based fallback setups.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

clevername-mcp

The official MCP server for Clevername — AI agent governance, security, and routing.

No account needed to get started. Run one command, call one tool, and you're in.

Quickstart (2 steps)

Step 1 — Add the server to your client

Claude Code

claude mcp add clevername-mcp --transport http https://clevername.net/api/hub/mcp/gateway

Cursor — one-click install:

Install in Cursor

Or add manually to your Cursor MCP config:

Claude Desktop / Windsurf — add to your MCP config:

{
  "mcpServers": {
    "clevername": {
      "command": "npx",
      "args": ["-y", "@clevername/clevername-mcp"]
    }
  }
}

Step 2 — Log in from the chat

Ask your AI assistant:

"Call the clevername_login tool"

You'll see a code like WXYZ-5678 appear. Open https://clevername.net/device, enter the code, then sign in with Google or your email and password — done. Your token is saved automatically and every tool unlocks.

That's it. No dashboard visit required before logging in. No CLEVERNAME_API_KEY to copy and paste.

How it works

Your MCP client (Claude Code, Claude Desktop, Cursor…)
  └── @clevername/clevername-mcp  (local stdio process)
        ├── clevername_login       ← device flow, no pre-auth needed
        └── all other tools        ← unlocked after login
              └── https://clevername.net/api/hub  (hub-core)
                    └── Your connected MCP servers, AI models, memory, audit

The clevername_login tool uses the OAuth 2.0 Device Authorization Grant (RFC 8628). It works even before you have an account — signing in at /device creates your account automatically via Google OAuth.

Available tools

Authentication

ToolWhat it does
clevername_loginAuthenticate from the CLI — prints a device code, polls until you approve at clevername.net/device. Works with no pre-existing token.

Identity & Health

ToolWhat it does
get_identityWho you're logged in as
list_modelsAvailable AI models
health_checkHub status
refresh_toolsForce-refresh the tool list

AI Chat

ToolWhat it does
chat_completeChat with any model via your BYOK keys
route_planPlan a multi-step agentic task

Multi-provider LLM (BYOK)

ToolWhat it does
ask_claudeCall Anthropic with your key
ask_gptCall OpenAI with your key
ask_geminiCall Google with your key
ask_llmCall any provider by name
ask_bestRoute to the best model for the task
ask_consensusAsk multiple models and compare answers

Memory

ToolWhat it does
create_memorySave something to persistent memory
list_memoriesList saved memories
search_memoriesSearch by content
delete_memoryDelete a memory

MCP Management

ToolWhat it does
list_mcp_connectionsSee your connected MCP servers
add_mcp_connectionConnect a new MCP server
call_mcp_toolCall a tool on any connected server
list_mcp_toolsList tools from a server
ping_mcp_connectionCheck if a server is reachable
delete_mcp_connectionRemove a server

MCP Activation (plugin registry)

ToolWhat it does
list_available_mcpsBrowse the MCP plugin registry
activate_mcpEnable a plugin (GitHub, Slack, Notion…)
deactivate_mcpDisable a plugin
list_active_mcpsSee what's enabled

Guard (AI agent security)

ToolWhat it does
guard_onboard_agentRegister an AI agent with guardrails and get a secure token
guard_list_agentsList registered agents
guard_get_profileGet a compiled guardrail profile
guard_register_agentRegister without full onboarding
guard_revoke_tokenRevoke an agent's token

Opt-in groups

Enable additional tool groups with set_tool_groups:

GroupTools
telemetryUsage summaries, cost reports, audit logs
projectsProject CRUD
configExport config, sync from Claude Desktop
aithroyzCybersecurity environment provisioning
loggingQuery GCP logs, error monitoring

Advanced setup

Use an existing token (CI/CD, headless environments)

If you're running in a headless environment or already have a token from the dashboard:

{
  "mcpServers": {
    "clevername": {
      "command": "npx",
      "args": ["-y", "@clevername/clevername-mcp"],
      "env": {
        "CLEVERNAME_API_KEY": "cnk_your_token_here"
      }
    }
  }
}

Tokens are available at clevername.net/dashboard/settings/developer.

Connect directly via HTTP (modern clients)

If your client supports HTTP MCP with OAuth:

https://clevername.net/api/hub/mcp/gateway

This skips the local process entirely — the hub handles auth via browser OAuth.

Troubleshooting

"clevername_login" times out — The device code expires after 5 minutes. Call the tool again to get a fresh code.

Tools show "Not authenticated" — Call clevername_login first. If you already logged in, check that ~/.clevername/config.json exists.

npx not foundInstall Node.js (v18+) and restart your terminal.

Tools don't appear after login — Run refresh_tools or restart your MCP client.

"Unauthorized" on a specific tool — Your token may have been revoked. Call clevername_login again to get a fresh one.

Development

cd integrations/clevername-mcp
npm install
npm run build
node dist/index.js   # stdio mode

License

MIT

Keywords

mcp

FAQs

Package last updated on 29 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts