cebelca-mcp
An MCP server that wraps the cebelca.biz accounting API, exposing tools for operations like managing partners, invoices, proformas, and fetching PDFs.
README
cebelca-mcp
An MCP server that wraps the cebelca.biz accounting API, exposing it as tools an MCP client (Claude, etc.) can call.
Development
This project uses devenv for its development
environment (Node.js, yarn). With direnv installed, cd into the directory and
the environment loads automatically; otherwise run devenv shell.
The cebelca.biz API key is read from the CEBELCA_BIZ_API_KEY environment
variable. It is set in .envrc (git-ignored) and loaded by direnv/devenv. The
server refuses to start if the variable is missing.
Optional: CEBELCA_BIZ_BASE_URL overrides the API base URL (defaults to
https://www.cebelca.biz/API).
Commands
yarn install # install dependencies
yarn dev # run from source with tsx (no build step)
yarn build # compile TypeScript to dist/
yarn start # run the compiled server (dist/index.js)
yarn typecheck # type-check without emitting
Project layout
src/
index.ts Entry point: builds the server, connects over stdio.
config.ts Loads config from the environment (API key, base URL).
client.ts HTTP client for the cebelca.biz resource/method API.
tools.ts MCP tool registration. Add new tools here.
The cebelca.biz API
The API is a resource/method RPC over HTTP (docs: Workonomic-API-bash, making-an-invoice):
- Every call is an HTTP
POSTwithx-www-form-urlencodedarguments. - Resource and method go in the
_rand_mquery params (_m2stacks a second method,_fpicks the output format,_x=1is explore mode). - Auth is HTTP Basic: the API token is the username, the password is the
literal
x. - Success responses look like
["ok", [{...}]]or[[{...}]]; errors like["validation", {...}]or[[{"err": "..."}]].CebelcaClientunwraps the success payload and throwsCebelcaErroron failures. - PDFs come from a separate
.../API-pdfendpoint.
Tools
| Tool | Purpose |
|---|---|
cebelca_explore |
Discover resources / methods / arguments (explore mode). |
cebelca_call |
Generic escape hatch: call any resource/method directly. |
cebelca_assure_partner |
Find-or-create a partner, return its id. |
cebelca_create_invoice_head |
Create an issued-invoice head (insert-smart-2). |
cebelca_add_invoice_line |
Add a body line to an invoice. |
cebelca_mark_invoice_paid |
Mark an invoice paid (by id or external id). |
cebelca_finalize_invoice |
Issue an invoice — noncash or fiscal (FURS). |
cebelca_get_fiscal_info |
Fetch ZOI/EOR/QR fiscal details. |
cebelca_create_proforma_head |
Create a proforma (pre-invoice) head. |
cebelca_add_proforma_line |
Add a body line to a proforma. |
cebelca_proforma_to_invoice |
Convert a proforma into an invoice. |
cebelca_get_pdf |
Fetch a document PDF as a base64 resource. |
Adding tools
Register new tools in src/tools.ts via server.registerTool(...), using
CebelcaClient.call(resource, method, args) and the run helper to turn
responses (and CebelcaErrors) into MCP tool results. When you need an
operation no dedicated tool covers, cebelca_explore + cebelca_call reach the
whole API.
Using with an MCP client
Build first (yarn build), then point your client at the compiled entry:
{
"mcpServers": {
"cebelca": {
"command": "node",
"args": ["/absolute/path/to/cebelca-mcp/dist/index.js"],
"env": { "CEBELCA_BIZ_API_KEY": "your-key-here" }
}
}
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.