Skip to content

MCP Server Setup

The Rotifer MCP Server lets any MCP-compatible Agent access the entire Gene ecosystem programmatically. Supports Claude Desktop, Cursor, VS Code, Windsurf, JetBrains, Zed, Cline, Continue, and more.

Most IDEs use the standard mcpServers format. Add the following to your IDE’s MCP configuration:

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

VS Code / GitHub Copilot and Zed use different config formats — see IDE-specific instructions below.

Edit the config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

Restart Claude Desktop after saving.

Create .cursor/mcp.json in your project root, or edit the global config at ~/.cursor/mcp.json:

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

VS Code uses a servers field (not mcpServers) and requires a type field. Create .vscode/mcp.json in your project root:

{
"servers": {
"rotifer": {
"type": "stdio",
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

You can also add servers via the Command Palette: MCP: Add Server. GitHub Copilot in VS Code uses the same config.

Edit the config file:

  • macOS / Linux: ~/.codeium/windsurf/mcp_config.json
  • Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

JetBrains (IntelliJ IDEA / WebStorm / PyCharm etc.)

Section titled “JetBrains (IntelliJ IDEA / WebStorm / PyCharm etc.)”

Open Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add (+), select STDIO:

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

Requires IntelliJ 2025.1 or later. Supports STDIO, HTTP, and SSE transports.

Zed uses the context_servers format. Edit Settings (Cmd+,) or use the Command Palette agent: open settings:

{
"context_servers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

Cline uses its own config file cline_mcp_settings.json. Open the Cline sidebar in VS Code → MCP Servers → Add:

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

Add the MCP Server to .continue/config.yaml:

mcpServers:
- name: rotifer
command: npx
args:
- "@rotifer/mcp-server"

Continue also supports importing Claude Desktop / Cursor JSON configs. MCP is available in Agent mode only.

The MCP Server runs in anonymous mode by default, allowing you to search and browse public Genes. To use Cloud features (publish Genes, manage your profile, etc.), log in first:

Terminal window
npx @rotifer/mcp-server login

Both GitHub and GitLab OAuth are supported. To specify a provider:

Terminal window
npx @rotifer/mcp-server login --provider github

To log out:

Terminal window
npx @rotifer/mcp-server logout

Credentials are stored in ~/.rotifer/credentials.json and shared with the @rotifer/playground CLI.

These tools query the Rotifer Cloud Registry. No authentication required.

ToolDescriptionKey Parameters
search_genesSearch the Gene ecosystem by name, domain, or fidelityquery, domain, fidelity, sort, page, per_page
get_gene_detailGet detailed Gene information including phenotype and fitnessgene_id (Gene UUID, name, or content hash), content_hash (optional alternative)
get_arena_rankingsView domain Arena rankings sorted by F(g)domain, page, per_page
compare_genesSide-by-side fitness comparison of 2-5 Genesgene_ids (array of UUIDs, required)
get_gene_statsDownload statistics for a Gene (total, 7d, 30d, 90d)gene_id (required)
get_leaderboardCreator reputation leaderboardlimit (default 20, max 100)
get_developer_profileGet a creator’s profile and reputation by usernameusername (required)
list_gene_versionsVersion history chain of a Gene by owner and nameowner, gene_name (both required)
get_gene_reputationDetailed reputation breakdown (Arena, Usage, Stability)gene_id (required)
suggest_domainSuggest matching domains from the domain registrydescription (required)

These tools operate on Genes and Agents in your local Agent workspace directory.

ToolDescriptionKey Parameters
list_local_genesScan locally installed Genes in the Agent workspaceproject_root, domain, fidelity
list_local_agentsList Agents registered in the local workspaceproject_root, state
init_geneInitialize a new Gene project with phenotype.json templategene_name (required), fidelity, domain, no_genesis, project_root
scan_genesScan source files for candidate gene functions or SKILL.mdpath, skills, skills_path, project_root
wrap_geneWrap a function or SKILL.md as a Rotifer Genegene_name (required), domain, fidelity, from_skill, from_clawhub, project_root
compile_geneCompile a Gene to WASMgene_name (required), check, wasm_path, lang, project_root
run_geneExecute a local Genegene_name (required), input, verbose, no_sandbox, trust_unsigned, project_root
test_geneTest a Gene in the sandbox (schema, I/O, compilation)gene_name (required), verbose, compliance, project_root
install_geneInstall a Gene from Cloud Registry into the local Agent workspacegene_id (required), force, project_root
vg_scanV(g) security scan — static analysis for Gene/Skill code safety (grade A/B/C/D/?)path, gene_id, all, project_root

These tools modify data in Rotifer Cloud. Authentication required (run login first).

ToolDescriptionKey Parameters
publish_genePublish a Gene to Rotifer Cloudgene_name, all, description, changelog, skip_arena, skip_security, project_root
arena_submitSubmit a Gene to the Arena with 5-dimensional fitness scoresgene_id, fitness_value, safety_score, success_rate, latency_score, resource_efficiency (all required)
create_agentCreate an Agent by composing local Genesagent_name (required), gene_ids (required, ≥1), composition (Seq/Par/Cond/Try/TryPool), domain (metadata only), strategy, par_merge, project_root
agent_runRun a local Agent by nameagent_name (required), input, verbose, no_sandbox, project_root
ToolDescriptionKey Parameters
auth_statusCheck current authentication status (username, provider, expiry)
loginLog in to Rotifer Cloud via OAuth (opens browser)provider (github or gitlab, default: github), endpoint
logoutLog out and clear locally saved credentials
get_mcp_statsMCP Server call analytics (calls, latency, top tools)days (default 7). Requires auth.
get_my_reputationCurrent logged-in creator’s reputation and stats— . Requires auth.

The MCP Server also provides Resource templates that Agents can read via URI:

URI TemplateDescription
rotifer://genes/{gene_id}/statsGene download statistics
rotifer://genes/{gene_id}Full Gene metadata and phenotype
rotifer://developers/{username}Creator profile and reputation
rotifer://leaderboardTop creators by reputation score
rotifer://local/genesAll Genes installed in the current Agent workspace
rotifer://local/agentsAll Agents registered in the current Agent workspace
rotifer://versionMCP Server version and update availability

Once configured, your Agent can:

"Search for web scraping genes"
→ search_genes({ query: "web scraping" })
"Which search gene has the highest fitness?"
→ get_arena_rankings({ domain: "search.web" })
"Compare these two genes"
→ compare_genes({ gene_ids: ["uuid1", "uuid2"] })
"Who has the highest reputation?"
→ get_leaderboard({ limit: 10 })
"What genes are installed locally?"
→ list_local_genes({})
"Create a new gene for text summarization"
→ init_gene({ gene_name: "summarize.text.my-v1", fidelity: "Wrapped" })
"Publish my gene to the cloud"
→ publish_gene({ gene_name: "summarize.text.my-v1" })
"Security scan my gene"
→ vg_scan({ path: "genes/summarize.text.my-v1", gene_id: "summarize.text.my-v1" })
"Check my auth status"
→ auth_status()
"Show version history for a gene"
→ list_gene_versions({ owner: "alice", gene_name: "search.web.google-v2" })

Every MCP tool maps to one or more CLI commands (and vice versa). Use this table when switching between CLI and MCP workflows.

CLI CommandMCP ToolNotes
rotifer searchsearch_genes
rotifer info <gene-ref>get_gene_detailCLI uses info, MCP uses get_gene_detail
rotifer arena listget_arena_rankings
rotifer comparecompare_genes
rotifer statsget_gene_stats
rotifer reputation --leaderboardget_leaderboard
rotifer reputation [gene-ref]get_gene_reputation
rotifer reputation --mineget_my_reputationRequires auth
rotifer whoamiauth_statusCLI whoami = MCP auth_status
rotifer versionslist_gene_versions
rotifer listlist_local_genes
rotifer agent listlist_local_agents
rotifer initinit_gene
rotifer scanscan_genes
rotifer wrapwrap_gene
rotifer compilecompile_gene
rotifer runrun_gene
rotifer testtest_gene
rotifer installinstall_gene
rotifer publishpublish_geneRequires auth
rotifer arena submitarena_submitRequires auth
rotifer agent createcreate_agent
rotifer agent runagent_run
rotifer loginlogin
rotifer logoutlogout
rotifer arena watchInteractive; no MCP equivalent
rotifer network *P2P stubs; no MCP equivalent
rotifer vgvg_scanReturns JSON report with grade + findings
get_mcp_statsMCP-only: call analytics
suggest_domainMCP-only: domain suggestion
get_developer_profileMCP-only (CLI uses reputation)

If you use OpenClaw, Rotifer works as an MCP-based Skill. Install manually:

Terminal window
git clone https://github.com/rotifer-protocol/rotifer-self-evolving-agent.git \
~/.openclaw/workspace/skills/rotifer-self-evolving-agent

Then restart OpenClaw. Use /rotifer to access all Gene ecosystem tools.

WebMCP (Web Model Context Protocol) allows browser-based AI Agents to discover and invoke Rotifer tools directly from web pages — no server configuration needed.

Rotifer’s homepage and rotifer.ai embed declarative <form> tags that expose tools to any WebMCP-compatible browser Agent:

<form hidden toolname="search_docs"
tooldescription="Search Rotifer Protocol documentation">
<input name="query" type="text"
toolparamdescription="Search keywords" />
</form>

When an Agent visits rotifer.dev or rotifer.ai, it automatically discovers these tools and can call them without any manual setup.

rotifer.ai (14 tools: 10 read-only + 4 write):

ToolDescriptionExecutable
search_genesSearch the Gene ecosystemYes
get_gene_detailGet Gene details by name or UUIDYes (with name→UUID resolution)
get_arena_rankingsView Arena rankingsYes
compare_genesCompare 2-5 Genes side-by-sideYes
get_gene_statsGet download and usage statsYes
get_leaderboardTop creators by reputationYes
get_developer_profileCreator profile and GenesYes
list_gene_versionsVersion history for a GeneYes
get_gene_reputationReputation breakdown for a GeneYes
get_rotifer_capabilitiesList all tools and their availabilityYes (meta-tool)
set_gene_visibilitySet Gene as published/visible (WebMCP-only)Yes (requires login)
request_arena_evaluationRequest server-side Arena evaluation (WebMCP-only)Yes (requires login)
create_geneCreate Gene entry in registry (WebMCP-only)Yes (requires login)
update_gene_metadataUpdate Gene metadata (WebMCP-only)Yes (requires login)

Naming note: set_gene_visibility and request_arena_evaluation are WebMCP-only tools, deliberately named differently from the MCP tools publish_gene and arena_submit. The MCP versions run full local-to-cloud pipelines, while the WebMCP versions perform simpler browser-side operations. See ADR-198 for the semantic equivalence constraint.

rotifer.dev (3 tools):

ToolDescriptionExecutable
search_docsSearch protocol documentationDiscovery only
get_mcp_configGet MCP Server config snippetYes
suggest_domainSuggest a Gene domain from descriptionYes

Note: rotifer.ai WebMCP tools accept gene names (e.g. search.web.google-v2) in addition to UUIDs, and automatically resolve them to UUIDs before querying the Cloud API.

WebMCP is a W3C Community Group specification with Early Preview in Chrome 146 (February 2026). Supported by Agents that implement the Web MCP specification, including browser extensions and Agent frameworks with web browsing capabilities.

VariableDescriptionDefault
ROTIFER_CLOUD_ENDPOINTCloud API endpointhttps://cloud.rotifer.dev
ROTIFER_CLOUD_ANON_KEYAPI key(built-in)
  • Node.js >= 20
  • Internet access (to reach Rotifer Cloud API)

“Tool not found” error: Ensure npx is in your PATH and Node.js >= 20 is installed.

Connection timeout: Check your internet connection. The MCP Server connects to cloud.rotifer.dev.

No results returned: The Gene ecosystem is in alpha. Try broader search terms or check available domains with get_arena_rankings({}).