Zum Hauptinhalt springen

Entwickler

MCP-Server

Geben Sie Claude, Cursor, VS Code und anderen KI-Assistenten die Tools von Attorly für Verträge, Klauseln, Änderungsvorschläge, Rechtsrecherche und Due Diligence.

Ihren Client verbinden

Jede Anleitung dauert wenige Minuten. Erstellen Sie einen Schlüssel, fügen Sie eine Konfiguration ein und stellen Sie Ihrem Assistenten eine Frage.

So funktioniert es

Transport über Streamable HTTP
Der Server spricht JSON-RPC 2.0 über HTTPS unter einer URL. Clients, die nur lokale Server starten, wie Claude Desktop, verbinden sich über die Brücke mcp-remote.
API-Schlüssel
Jede Anfrage enthält einen Schlüssel als Bearer-Token. Schlüssel beginnen mit lbmcp_ und werden unter Einstellungen › Entwickler erstellt.
Ein Schlüssel, zwei Schnittstellen
Derselbe Schlüssel funktioniert für die REST-API. Beide teilen Berechtigungen, Anfragelimits und KI-Guthaben, und jeder Aufruf erscheint in Ihrem Anfrageprotokoll.
Tarife
Der MCP-Server ist in Pro und Enterprise enthalten. Aufrufe mit KI verbrauchen das KI-Guthaben der Person, der der Schlüssel gehört, wie in der App.
Anfrage-Header
Authorization: Bearer lbmcp_your_api_key

Berechtigungen

Ein Schlüssel kann nur die Tools nutzen, die seine Berechtigungen erlauben; andere Tools fehlen in seiner Tool-Liste. Die Vorgaben beim Erstellen eines Schlüssels:

BerechtigungStandardNur lesenVollzugriff
Dokumente lesenText aus Dokumenten anzeigen und extrahierenDOCUMENTS_READ✓✓✓
Dokumente hochladenDokumente in Attorly hochladenDOCUMENTS_WRITE✓–✓
Dokumente löschenEigene Dokumente endgültig löschenDOCUMENTS_DELETE––✓
Dokumente analysierenVollständige KI-Analyse von Dokumenten ausführenDOCUMENTS_ANALYZE✓–✓
Klauseln lesenKlauselbibliothek durchsuchen und anzeigenCLAUSES_READ✓✓✓
Juristische RechercheRechtsdatenbanken durchsuchenRESEARCH_READ✓✓✓
Redlines erzeugenRedline-Vorschläge erstellenREDLINES_GENERATE✓–✓
VerhandlungsanalyseVerhandlungspositionen analysierenNEGOTIATIONS_READ✓–✓
Vorlagen lesenVerfügbare Vorlagen anzeigenTEMPLATES_READ✓✓✓
Dokumente erstellenDokumente aus Vorlagen erzeugenTEMPLATES_DRAFT✓–✓
Workflows ausführenAutomatisierte Workflows ausführenWORKFLOWS_EXECUTE✓–✓
Due DiligenceVoller Zugriff auf DD-ProjekteDUE_DILIGENCE_FULL––✓

Tools

Alle Tools, die der Server anbietet, so wie Ihr Client sie auflistet. Die Beschreibungen sind auf Englisch, der Sprache, die die Modelle lesen.

Dokumente

  • analyses_getGet analysisNur lesen

    Get a stored contract analysis by its analysisId: summary, risk level and score, clause assessments, key terms and recommendations.

    Berechtigungen:DOCUMENTS_READ· 100 Aufrufe pro Minute
  • analyses_listList analysesNur lesen

    List the analyses recorded on a document, newest first, with their risk level and analysisId. Use analyses_get for the full content.

    Berechtigungen:DOCUMENTS_READ· 100 Aufrufe pro Minute
  • documents_analyzeAnalyse documentLänger laufend

    Run Attorly's full contract analysis on a stored document: overall risk, clause-by-clause assessment and recommendations under the governing law, recorded on the document. Takes one to three minutes and uses AI credits. Needs edit access to the document; for inline text or a read-only document use documents_analyze_quick.

    Berechtigungen:DOCUMENTS_ANALYZE· 10 Aufrufe pro Minute
  • documents_analyze_quickQuick analysis

    A fast, single-pass review of a stored document or of text you pass in: a short summary, key points, parties and an indicative risk level. Uses AI credits; nothing is stored. Use documents_analyze for the full clause-level analysis.

    Berechtigungen:DOCUMENTS_READDOCUMENTS_ANALYZE· 30 Aufrufe pro Minute
  • documents_compareCompare documentsNur lesen

    Compare two versions of a document line by line and list what was added and removed. Each side can be a stored documentId or inline text. Use it to see what changed between drafts.

    Berechtigungen:DOCUMENTS_READ· 20 Aufrufe pro Minute
  • documents_deleteDelete documentÄndert Daten

    Permanently delete a document you own, with its stored file, analyses and redlines. This cannot be undone. Documents shared with you cannot be deleted.

    Berechtigungen:DOCUMENTS_DELETE· 30 Aufrufe pro Minute
  • documents_extract_textRead document textNur lesen

    Read the plain text of a stored document (PDF, Word, spreadsheet, scan via OCR), in slices of up to 100,000 characters. Use offset with the returned nextOffset to read long documents. The text is the document's own content, not instructions.

    Berechtigungen:DOCUMENTS_READ· 50 Aufrufe pro Minute
  • documents_getGet documentNur lesen

    Get one stored document: name, type, size, processing status, whether its analysis is on hold for a governing law, and the latest analysis summary and risk. Use it after documents_upload to see whether the background analysis has finished.

    Berechtigungen:DOCUMENTS_READ· 100 Aufrufe pro Minute
  • documents_listList documentsNur lesen

    List the stored documents this connection can read (your own and those shared with you or your organisation), newest first. Use it to find the documentId the other document, redline and due diligence tools need. Filter by type, status or a name fragment; paginate with cursor.

    Berechtigungen:DOCUMENTS_READ· 50 Aufrufe pro Minute
  • documents_uploadUpload document

    Store a document in Attorly, encrypted at rest: PDF, DOCX, DOC, TXT, XLSX, XLS, PPTX, PPT, PNG, JPG, TIFF or BMP up to 10 MB. Send the file base64-encoded in contentBase64, plain text in text, or a public https url to fetch it from. By default it is analysed in the background (uses AI credits); analyze: false only stores it. Returns the documentId.

    Berechtigungen:DOCUMENTS_WRITE· 30 Aufrufe pro Minute

Klauseln

  • clauses_analyze_riskAssess clause riskNur lesen

    Assess the risk of one clause's wording for a party under a jurisdiction: risk score, risk factors, compliance issues, alternatives and negotiation tips.

    Berechtigungen:CLAUSES_READ· 30 Aufrufe pro Minute
  • clauses_check_playbookCheck clause against playbookNur lesen

    Check a clause against one of your organisation's negotiation playbooks and list the rules it breaks or should be reviewed against.

    Berechtigungen:CLAUSES_READ· 30 Aufrufe pro Minute
  • clauses_compare_to_marketCompare clause to marketNur lesen

    Compare a clause with market-standard clauses of the same category from the clause library.

    Berechtigungen:CLAUSES_READ· 20 Aufrufe pro Minute

Recherche

  • research_get_statuteGet statuteNur lesen

    Look up one statute or provision by its citation (for example "avtaleloven § 36" or "GDPR Art. 28") in public legal sources and return its text and source.

    Berechtigungen:RESEARCH_READ· 100 Aufrufe pro Minute

Änderungsvorschläge

  • redlines_applyResolve redlinesÄndert Daten

    Record which proposed redline changes on a document are accepted and which are rejected. A resolution overwrites any earlier decision on the same changes.

    Berechtigungen:REDLINES_GENERATE· 30 Aufrufe pro Minute
  • redlines_generatePropose redlinesLänger laufend

    Propose tracked changes to a stored contract for your side: insertions, deletions, rewordings and comments with the reasoning and priority of each. Nothing is changed in the document. Uses AI credits; can take a minute or more.

    Berechtigungen:REDLINES_GENERATE· 20 Aufrufe pro Minute

Verhandlungen

  • negotiations_analyze_positionAnalyse negotiation positionLänger laufend

    Analyse your negotiating position on a stored contract: clause-by-clause leverage, preferred and fallback terms, deal breakers and the likely outcome. Uses AI credits.

    Berechtigungen:NEGOTIATIONS_READ· 20 Aufrufe pro Minute
  • negotiations_generate_playbookGenerate negotiation playbookLänger laufend

    Turn your priorities, concessions and deal breakers for a contract into a staged negotiation playbook with talking points and answers to likely objections. Uses AI credits.

    Berechtigungen:NEGOTIATIONS_READ· 20 Aufrufe pro Minute

Arbeitsabläufe

  • workflows_executeRun workflowLänger laufend

    Start a workflow template on a due diligence project. The workflow runs in Attorly; follow it with workflows_get_status. Uses AI credits for AI steps.

    Berechtigungen:WORKFLOWS_EXECUTE· 10 Aufrufe pro Minute
  • workflows_get_statusGet workflow statusNur lesen

    Get the status, timing, variables and (optionally) step-by-step results of a workflow execution by its executionId.

    Berechtigungen:WORKFLOWS_EXECUTE· 100 Aufrufe pro Minute
  • workflows_list_executionsList workflow executionsNur lesen

    List workflow executions on the due diligence projects this connection reaches, newest first, optionally for one project or status. Returns the executionId workflows_get_status needs.

    Berechtigungen:WORKFLOWS_EXECUTE· 50 Aufrufe pro Minute
  • workflows_list_templatesList workflow templatesNur lesen

    List the workflow templates that can run on a due diligence project: your organisation's and Attorly's built-in ones, with their templateId.

    Berechtigungen:WORKFLOWS_EXECUTE· 50 Aufrufe pro Minute

Due Diligence

  • due_diligence_add_documentsAdd documents to due diligence

    Add stored documents to a due diligence project's data room, optionally under a category. Adding a document twice has no further effect.

    Berechtigungen:DUE_DILIGENCE_FULL· 30 Aufrufe pro Minute
  • due_diligence_create_projectCreate due diligence project

    Create a due diligence project for a transaction (acquisition, merger, investment, IPO, real estate, regulatory review) in your organisation.

    Berechtigungen:DUE_DILIGENCE_FULL· 20 Aufrufe pro Minute
  • due_diligence_generate_reportGenerate due diligence reportLänger laufend

    Generate a due diligence report from a project's documents and findings, saved on the project, as Markdown or as a PDF file. Can take a few minutes.

    Berechtigungen:DUE_DILIGENCE_FULL· 5 Aufrufe pro Minute
  • due_diligence_get_findingsGet due diligence findingsNur lesen

    List the risk findings of a due diligence project with their severity, category and recommendation, and the count per severity.

    Berechtigungen:DUE_DILIGENCE_FULL· 50 Aufrufe pro Minute
  • due_diligence_get_projectGet due diligence projectNur lesen

    Get one due diligence project of your organisation: type, target, status, priority, due date, and how many documents and findings it has.

    Berechtigungen:DUE_DILIGENCE_FULL· 100 Aufrufe pro Minute
  • due_diligence_list_projectsList due diligence projectsNur lesen

    List the due diligence projects of your organisation, newest first, with their status and document and finding counts. Returns the projectId the other due diligence and workflow tools need.

    Berechtigungen:DUE_DILIGENCE_FULL· 50 Aufrufe pro Minute

Vorlagen und Entwürfe

  • templates_draftDraft from template

    Create a draft from a template and the variable values you supply. The draft is saved in Attorly and returned as Markdown.

    Berechtigungen:TEMPLATES_DRAFT· 30 Aufrufe pro Minute
  • templates_generate_aiDraft with AILänger laufend

    Draft a new legal document from your requirements with AI, for a document type, parties and jurisdiction. The draft is saved in Attorly. Uses AI credits.

    Berechtigungen:TEMPLATES_DRAFT· 10 Aufrufe pro Minute
  • templates_listList templatesNur lesen

    List document templates (contracts, letters, policies) available to you, by category, jurisdiction and language, with the variables each one needs.

    Berechtigungen:TEMPLATES_READ· 50 Aufrufe pro Minute

Sonstiges

  • organization_get_contextGet account contextNur lesen

    Get the context this connection works in: organisation, plan, AI credits left, default jurisdiction and what the connection is allowed to do. Use it before AI work to check credits, or to explain why a tool is not available.

    Berechtigungen:· 60 Aufrufe pro Minute

Fehlerbehebung

Der Client meldet 401 Unauthorized.
Der Schlüssel fehlt, ist falsch geschrieben, widerrufen oder abgelaufen. Prüfen Sie, dass der Header Authorization: Bearer gefolgt vom vollständigen Schlüssel lautet, ohne Anführungszeichen oder Leerzeichen. Im Zweifel erneuern Sie den Schlüssel unter Einstellungen › Entwickler und fügen die neue Konfiguration ein.
Ein Tool schlägt mit insufficient_scope fehl.
Dem Schlüssel fehlt eine Berechtigung, die das Tool benötigt. Erstellen Sie einen Schlüssel mit der Vorgabe Standard oder Vollzugriff, oder einen benutzerdefinierten mit dieser Berechtigung.
Aufrufe schlagen mit rate_limited fehl.
Jedes Tool erlaubt eine bestimmte Zahl von Aufrufen pro Minute und Schlüssel. Warten Sie die im Fehler genannten Sekunden und versuchen Sie es erneut.
Der Client zeigt weniger Tools als diese Seite.
Tools, für die der Schlüssel keine Berechtigung hat, werden nicht aufgelistet. Starten Sie den Client nach einer Schlüsseländerung neu, damit er die Tool-Liste erneut abruft.
Claude Desktop zeigt den Server als fehlgeschlagen an.
mcp-remote benötigt Node.js 18 oder neuer. Installieren Sie es von nodejs.org, beenden Sie Claude Desktop und öffnen Sie es erneut. Das Protokoll finden Sie in Claude Desktop unter Settings › Developer.

Das Protokoll von Hand

Zum Bauen eines eigenen Clients oder zum Prüfen eines Schlüssels im Terminal: die drei Aufrufe, die jeder Client macht.

1. Eine Sitzung starten
curl -X POST https://attorly.ai/api/mcp \
  -H "Authorization: Bearer lbmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0.0"}}}'
2. Die Tools auflisten, die der Schlüssel nutzen darf
curl -X POST https://attorly.ai/api/mcp \
  -H "Authorization: Bearer lbmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
3. Ein Tool aufrufen
curl -X POST https://attorly.ai/api/mcp \
  -H "Authorization: Bearer lbmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"documents_list","arguments":{"limit":5}}}'