@toriihq/torii-mcp
v0.0.8
Published
Model Context Protocol server for Torii API
Readme
Torii MCP Server
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.
Example for questions
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.
Setting up in AI Assistants
Cursor
- 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
Claude Desktop
- 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
Developing
Prerequisites
- Node.js (v16 or higher)
- A Torii API key
- yarn package manager
Installation
- Clone this repository
- Install dependencies:
yarn install- Build the project:
yarn buildConfiguration
Set your Torii API key as an environment variable:
export TORII_API_KEY=your_api_key_hereUsage
Start the MCP server:
yarn startOr run it in development mode:
yarn devThe server will start and listen for MCP requests on stdin and respond on stdout.
Development
The server is built using the MCP SDK and follows the Torii API structure as defined in the Swagger documentation.
Troubleshooting
If you encounter any issues:
- Ensure your API key is correctly set
- Verify the absolute path to the
dist/index.jsfile is correct - Check that the Node.js version requirement is met
- Make sure the build process completed successfully
License
NONE
