This is a Model Context Protocol (MCP) server for https://toriihq.com. It provides a set of tools that can be used by AI assistants to interact with the Torii platform.
Here are some example questions you can ask an AI assistant that's connected to this MCP server:
- Show me all the apps in my Torii instance
- List users who have admin access
- What contracts are expiring in the next 30 days?
- Show me contracts with renewal dates in Q4
- List all apps that were added last month
The AI assistant will use the appropriate MCP tools to fetch this information from your Torii instance and provide detailed responses.
- Open Cursor Settings
- Go to the MCP tab
- Click "Add new global MCP Server"
- Select type "command"
- Update the file with:
{
"mcpServers": {
"Torii MCP": {
"command": "env",
"args": [
"TORII_API_KEY=YOUR_API_KEY",
"npx",
"@toriihq/torii-mcp"
]
}
}
}
- Click "Save"
- You should now see the Torii API tools available in Cursor
- Open Claude Desktop Settings
- Navigate to the "Developer" section
- Click "Edit Config"
- Update the claude_desktop_config.json with:
{ "mcpServers": { "torii": { "command": "npx", "args": [ "@toriihq/torii-mcp" ], "env": { "TORII_API_KEY": "YOUR_API_KEY" } } } }
- Restart Calude Desktop
- The Torii API tools should now be available in your Claude Desktop conversations
- Node.js (v16 or higher)
- A Torii API key
- yarn package manager
- Clone this repository
- Install dependencies:
yarn install
- Build the project:
yarn build
Set your Torii API key as an environment variable:
export TORII_API_KEY=your_api_key_here
Start the MCP server:
yarn start
Or run it in development mode:
yarn dev
The server will start and listen for MCP requests on stdin and respond on stdout.
The server is built using the MCP SDK and follows the Torii API structure as defined in the Swagger documentation.
If you encounter any issues:
- Ensure your API key is correctly set
- Verify the absolute path to the
dist/index.js
file is correct - Check that the Node.js version requirement is met
- Make sure the build process completed successfully
NONE