Sensei MCP is a specialized server implementing the Model Context Protocol (MCP) to provide expert guidance for Dojo and Cairo development on Starknet. Acting as your personal Dojo Sensei, it offers specialized knowledge and assistance for building onchain worlds using the Dojo Entity Component System (ECS) framework.
mcp.json
:{
"mcpServers": {
"sensei": {
"type": "command",
"command": "npx github:dojoengine/sensei-mcp",
"enabled": true
}
}
}
Cursor will attempt to initialize the server. You may need to install the server manually by running npx github:dojoengine/sensei-mcp
in your terminal before Cursor will detect it.
To add Sensei MCP to Claude Code, run:
claude mcp add sensei-mcp npx github:dojoengine/sensei-mcp
You can also run Sensei MCP directly in your terminal:
npx github:dojoengine/sensei-mcp
Once installed, Cursor Agent will automatically query Sensei when appropriate. For the best experience:
Explicitly mention specialized tools in your requests (e.g., "Please use the dojo_model tool to help me create a model")
Follow the incremental development approach:
dojo_101
dojo_model
dojo_logic
dojo_config
dojo_test
Be specific in your requests rather than asking for general help
Break down complex tasks into manageable components
I'm building a Dojo game. First, please use the dojo_101 tool to help me set up the project structure.
After that, I'll need help creating the models using the dojo_model tool.
Sensei provides specialized tools for different aspects of Dojo development:
For optimal results, follow this structured approach:
Project Setup (using dojo_101
)
sozo init
Define Models (using dojo_model
)
Implement Systems (using dojo_logic
)
Project Configuration (using dojo_config
)
Testing (using dojo_test
)
This workflow ensures you build your Dojo application in a structured, methodical way, leveraging each specialized tool at the appropriate development stage.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "sensei" '{"type":"command","command":"npx github:dojoengine/sensei-mcp","enabled":true}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"sensei": {
"type": "command",
"command": "npx github:dojoengine/sensei-mcp",
"enabled": true
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"sensei": {
"type": "command",
"command": "npx github:dojoengine/sensei-mcp",
"enabled": true
}
}
}
3. Restart Claude Desktop for the changes to take effect