# Example MCP Configuration
## Claude Desktop Configuration
Add this to your Claude Desktop configuration file:
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
**Linux**: `~/.config/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"odoo": {
"command": "node",
"args": [
"/Users/malvernbright/development/Odoo/odoo-17.0+e.20251121/mcp-odoo-server/build/index.js"
]
}
}
}
```
## Environment Variables (Optional)
If you want to use environment variables for connection details:
```bash
export ODOO_HOST=localhost
export ODOO_DATABASE=mydb
export ODOO_USERNAME=admin@example.com
export ODOO_API_KEY=your-api-key-here
export ODOO_PORT=8069
export ODOO_PROTOCOL=http
```
## Multiple Odoo Instances
You can configure multiple MCP server instances for different Odoo databases:
```json
{
"mcpServers": {
"odoo-production": {
"command": "node",
"args": ["/path/to/mcp-odoo-server/build/index.js"]
},
"odoo-staging": {
"command": "node",
"args": ["/path/to/mcp-odoo-server/build/index.js"]
},
"odoo-development": {
"command": "node",
"args": ["/path/to/mcp-odoo-server/build/index.js"]
}
}
}
```
Then connect to each one separately using the `odoo_connect` tool with different credentials.
## VS Code with Continue Extension
If using the Continue extension in VS Code:
```json
{
"mcpServers": {
"odoo": {
"command": "node",
"args": [
"/Users/malvernbright/development/Odoo/odoo-17.0+e.20251121/mcp-odoo-server/build/index.js"
]
}
}
}
```
## Testing the Configuration
After configuring, restart your MCP client and test the connection:
1. Use the `odoo_connect` tool with your credentials
2. Run `odoo_version` to verify the connection
3. Try `odoo_get_installed_modules` to see your modules
## Troubleshooting
### Server Not Found
- Verify the path to `build/index.js` is correct
- Ensure you've run `npm run build`
- Check the MCP client logs for errors
### Connection Timeouts
- Verify Odoo is running and accessible
- Check firewall settings
- Ensure the port is correct
### Authentication Failures
- Verify your API key is valid
- Check the database name is correct
- Ensure the user has proper permissions