> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sensorup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started with MCP

> Learn how to set up and configure SensorUp MCP tools for your AI assistant

## Prerequisites

Before you begin, ensure you have:

* A SensorUp account with appropriate permissions
* An API key for authentication (see [Authentication](/api/graphql/authentication))
* An MCP-compatible AI assistant or application (e.g., Claude Desktop, Cline, etc.)

## Installation

### Using npx (Recommended)

The SensorUp MCP server can be installed and run using npx:

```bash theme={null}
npx @sensorup/mcp-server
```

### Using npm

Alternatively, install globally:

```bash theme={null}
npm install -g @sensorup/mcp-server
```

## Configuration

### MCP Server Configuration

Configure your MCP client to connect to the SensorUp MCP server. The configuration will vary depending on your MCP client.

#### Example: Claude Desktop Configuration

Add the following to your Claude Desktop configuration file:

```json theme={null}
{
  "mcpServers": {
    "sensorup": {
      "command": "npx",
      "args": ["@sensorup/mcp-server"],
      "env": {
        "SENSORUP_API_KEY": "your-api-key-here",
        "SENSORUP_API_URL": "https://api.sensorup.com/graphql"
      }
    }
  }
}
```

### Environment Variables

The SensorUp MCP server requires the following environment variables:

* `SENSORUP_API_KEY`: Your SensorUp API key
* `SENSORUP_API_URL`: The SensorUp GraphQL API endpoint (defaults to production)

## Verification

Once configured, verify the connection by asking your AI assistant to:

1. List available MCP tools
2. Query basic information from your SensorUp account

## Next Steps

* Explore [Available MCP Tools](/api/mcp/tools)
* Review [Usage Examples](/api/mcp/examples)
* Learn about [SensorUp GraphQL API](/api/graphql/overview)

## Troubleshooting

### Connection Issues

If you're experiencing connection issues:

1. Verify your API key is valid
2. Check that your API endpoint URL is correct
3. Ensure your network allows outbound HTTPS connections
4. Review the MCP server logs for error messages

### Authentication Errors

If you encounter authentication errors:

1. Confirm your API key has the necessary permissions
2. Check if your API key has expired
3. See [Authentication](/api/graphql/authentication) for more details

## Support

For additional help, please contact SensorUp support or refer to the [MCP Official Documentation](https://modelcontextprotocol.io).
