API & MCP
Everything a person can do on Kinetica Inverse Kinematics, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kineticainversekinematics.usefulweb.site/api/v1/calculate– run Kinetica Inverse KinematicsGET https://kineticainversekinematics.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Kinetica Inverse Kinematics
Solves the inverse kinematics of a serial robot (DH table, URDF subset or library robot) for a target TCP pose with damped least squares from several deterministic seeds, plus closed-form solutions for planar 2-link arms and SCARAs. Lists every distinct solution with its residual, joint-limit and singularity status, and explains why a target is unreachable.
| Field | Type | Default | Description |
|---|---|---|---|
robot | select (kx6-1400, ur5-like, puma560, scara-550, gantry-xyz, planar2, custom-dh, urdf, json) | "kx6-1400" | Robot. A library robot, or choose a custom DH table, URDF or Kinetica robot JSON. |
convention | select (dh, mdh) | "dh" | DH convention (custom table) |
dh | table | — | DH table (custom). One row per joint. Lengths in mm, angles in degrees. For revolute joints θ is the zero offset, for prismatic joints d is. |
robotText | textarea | — | URDF or robot JSON. Used when Robot is “URDF” or “Kinetica robot JSON”. URDF subset: links with box/cylinder/sphere, revolute/continuous/prismatic/fixed joints. |
tool | text | — | Tool offset (TCP). x, y, z (mm), roll, pitch, yaw (deg) in the flange frame, e.g. “0, 0, 150, 0, 0, 0”. Empty = robot default. |
x (required) | number | 700 | Target x |
y (required) | number | 200 | Target y |
z (required) | number | 600 | Target z |
roll | number | 180 | Roll |
pitch | number | 0 | Pitch |
yaw | number | 0 | Yaw |
mode | select (auto, full, position) | "auto" | Task |
seed | text | — | Preferred configuration. Joint values the solutions are sorted by (closest first). Empty = home pose. |
restarts | integer | 12 | Random restarts |
rngSeed | integer | 7 | Random seed. Seeds the deterministic restart generator, so the same input always gives the same solutions. |
Example request
6-axis arm, tool pointing down at (700, 200, 600) mm
curl -X POST https://kineticainversekinematics.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"robot":"kx6-1400","x":700,"y":200,"z":600,"roll":180,"pitch":0,"yaw":0}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://kineticainversekinematics.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kinetica_inverse_kinematics - Local stdio connector:
node src/mcp-stdio.ts --tool=kinetica-inverse-kinematics
{
"mcpServers": {
"kinetica-inverse-kinematics": { "type": "http", "url": "https://kineticainversekinematics.usefulweb.site/mcp" }
}
}