npm-sevdesk-mcp
v1.0.1
Published
Model Context Protocol (MCP) server for the SevDesk API - manage contacts, invoices, and offers through AI agents
Downloads
205
Maintainers
Readme
npm-sevdesk-mcp
A Model Context Protocol (MCP) server for the SevDesk API. This package allows AI agents (like Claude) to interact with your SevDesk account to manage contacts, invoices, offers, and more.
Installation
You can use this MCP server directly via npx without installing it globally:
npx npm-sevdesk-mcpOr install it globally:
npm install -g npm-sevdesk-mcpConfiguration
The server requires the SEVDESK_API_TOKEN environment variable to be set.
You can find your API token in your SevDesk account settings under Settings > Users > [Your User] > API Token.
Usage with Claude Desktop
Add the following to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"sevdesk": {
"command": "npx",
"args": ["-y", "npm-sevdesk-mcp"],
"env": {
"SEVDESK_API_TOKEN": "YOUR_API_TOKEN_HERE"
}
}
}
}Configuration File Locations
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Usage with Cursor
- Open Cursor Settings.
- Navigate to Features > MCP.
- Click Add New MCP Server.
- Enter the following details:
- Name:
sevdesk - Type:
command - Command:
npx -y npm-sevdesk-mcp - Environment Variables: Add a new variable with Key
SEVDESK_API_TOKENand your token as the Value.
- Name:
Usage with ChatGPT Desktop
- Open the ChatGPT Desktop application (macOS/Windows).
- Go to Settings.
- Enable Developer Mode (if required) or look for Connectors / MCP Servers.
- Add a new server with the following configuration:
- Name:
sevdesk - Command:
npx -y npm-sevdesk-mcp - Environment Variables:
SEVDESK_API_TOKEN=YOUR_API_TOKEN
- Name:
Available Tools
Generic
request: Make a raw HTTP request to any SevDesk API endpoint.- Inputs:
method(GET/POST/PUT/DELETE),url,data(body),params(query).
- Inputs:
Contacts
list_contacts: List contacts with optional filtering.- Inputs:
limit,offset,customerNumber,depth.
- Inputs:
create_contact: Create a new contact (Organization or Person).- Inputs:
name(Organization Name),categoryId(3=Customer, 2=Supplier),surename/familyname(for Persons),customerNumber.
- Inputs:
update_contact: Update an existing contact.- Inputs:
contactId(Required), and any fields to update (e.g.,name,status).
- Inputs:
Invoices
list_invoices: List invoices.- Inputs:
limit,offset,status,contactId.
- Inputs:
create_invoice: Create a new invoice, optionally including line items (positions).- Inputs:
contactId(Required),header,invoiceDate,deliveryDate,status,positions(Array of items).
- Inputs:
update_invoice: Update an existing invoice.- Inputs:
invoiceId(Required),header,status,deliveryDate.
- Inputs:
get_invoice_positions: Get the line items for a specific invoice.- Inputs:
invoiceId(Required).
- Inputs:
Offers (Orders)
create_offer: Create a new offer (Order type 'AN'), optionally including line items.- Inputs:
contactId(Required),header,orderDate,status,positions(Array of items).
- Inputs:
update_offer: Update an existing offer.- Inputs:
orderId(Required),header,status.
- Inputs:
Example Usage
Once configured, you can ask Claude to:
- "List all my contacts in SevDesk"
- "Create a new customer contact named 'Acme Corp'"
- "Show me all unpaid invoices"
- "Create an invoice for contact ID 12345 with two line items"
Requirements
- Node.js >= 16.0.0
- A SevDesk account with API access
Troubleshooting
- Authentication Errors: Ensure your
SEVDESK_API_TOKENis correct and has permissions to access the API. - Model/Field Errors: The SevDesk API structure can be complex. If a specific field isn't working with the convenience tools, try using the raw
requesttool to debug or perform the action manually.
License
MIT
