Разработчици
MCP сървър
Дайте на Claude, Cursor, VS Code и други ИИ асистенти инструментите на Attorly за договори, клаузи, предложения за промени, правни проучвания и правен преглед.
Свържете своя клиент
Всяко ръководство отнема няколко минути. Създайте ключ, поставете една конфигурация и задайте въпрос на асистента си.
https://attorly.ai/api/mcp- Claude CodeАгентът за програмиране на Anthropic във вашия терминал.Ръководство за настройка
- Claude DesktopПриложението Claude за macOS и Windows.Ръководство за настройка
- CursorРедакторът на код с ИИ.Ръководство за настройка
- VS CodeРежимът агент на GitHub Copilot във Visual Studio Code.Ръководство за настройка
- OpenAI APIМодели на OpenAI чрез API на OpenAI.Ръководство за настройка
Как работи
- Пренос чрез Streamable HTTP
- Сървърът комуникира чрез JSON-RPC 2.0 през HTTPS на един URL адрес. Клиентите, които стартират само локални сървъри, като Claude Desktop, се свързват чрез моста mcp-remote.
- API ключове
- Всяка заявка носи ключ като Bearer токен. Ключовете започват с lbmcp_ и се създават в Настройки › Разработчици.
- Един ключ, два интерфейса
- Същият ключ работи за REST API. Двата интерфейса споделят права, ограничения на заявките и ИИ кредити, а всяко извикване се появява в дневника на заявките.
- Планове
- MCP сървърът е включен в Pro и Enterprise. Извикванията, които използват ИИ, изразходват ИИ кредитите на собственика на ключа, както в приложението.
Authorization: Bearer lbmcp_your_api_keyПрава
Ключът може да използва само инструментите, разрешени от правата му; останалите липсват в списъка му с инструменти. Предварителните настройки при създаване на ключ:
| Право | Стандартен | Само четене | Пълен достъп |
|---|---|---|---|
Четене на документиПреглед и извличане на текст от документиDOCUMENTS_READ | ✓ | ✓ | ✓ |
Качване на документиКачване на документи в AttorlyDOCUMENTS_WRITE | ✓ | – | ✓ |
Изтриване на документиОкончателно изтриване на собствените документиDOCUMENTS_DELETE | – | – | ✓ |
Анализ на документиПълен AI анализ на документиDOCUMENTS_ANALYZE | ✓ | – | ✓ |
Четене на клаузиТърсене и преглед на библиотеката с клаузиCLAUSES_READ | ✓ | ✓ | ✓ |
Правни изследванияТърсене в правни бази данниRESEARCH_READ | ✓ | ✓ | ✓ |
Генериране на корекцииСъздаване на предложения за корекцииREDLINES_GENERATE | ✓ | – | ✓ |
Анализ на преговориАнализ на позициите в преговоритеNEGOTIATIONS_READ | ✓ | – | ✓ |
Четене на шаблониПреглед на наличните шаблониTEMPLATES_READ | ✓ | ✓ | ✓ |
Изготвяне на документиГенериране на документи от шаблониTEMPLATES_DRAFT | ✓ | – | ✓ |
Изпълнение на работни процесиИзпълнение на автоматизирани работни процесиWORKFLOWS_EXECUTE | ✓ | – | ✓ |
Правен due diligenceПълен достъп до проект за due diligenceDUE_DILIGENCE_FULL | – | – | ✓ |
Инструменти
Всички инструменти, които сървърът предлага, както ги показва вашият клиент. Описанията са на английски, езика, който моделите четат.
Документи
analyses_getGet analysisСамо четенеGet a stored contract analysis by its analysisId: summary, risk level and score, clause assessments, key terms and recommendations.
Права:DOCUMENTS_READ· 100 извиквания в минутаanalyses_listList analysesСамо четенеList the analyses recorded on a document, newest first, with their risk level and analysisId. Use analyses_get for the full content.
Права:DOCUMENTS_READ· 100 извиквания в минутаdocuments_analyzeAnalyse documentПродължителна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.
Права:DOCUMENTS_ANALYZE· 10 извиквания в минутаdocuments_analyze_quickQuick analysisA 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.
Права:DOCUMENTS_READDOCUMENTS_ANALYZE· 30 извиквания в минутаdocuments_compareCompare documentsСамо четене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.
Права:DOCUMENTS_READ· 20 извиквания в минутаdocuments_deleteDelete documentПроменя данниPermanently delete a document you own, with its stored file, analyses and redlines. This cannot be undone. Documents shared with you cannot be deleted.
Права:DOCUMENTS_DELETE· 30 извиквания в минутаdocuments_extract_textRead document textСамо четене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.
Права:DOCUMENTS_READ· 50 извиквания в минутаdocuments_getGet documentСамо четене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.
Права:DOCUMENTS_READ· 100 извиквания в минутаdocuments_listList documentsСамо четене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.
Права:DOCUMENTS_READ· 50 извиквания в минутаdocuments_searchSearch documentsСамо четенеSearch the content and names of the documents you own, by meaning and by exact words. Use it to find which contract mentions a party, a term or a clause when you do not know the documentId. Returns the matching passages.
Права:DOCUMENTS_READ· 30 извиквания в минутаdocuments_uploadUpload documentStore 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.
Права:DOCUMENTS_WRITE· 30 извиквания в минута
Клаузи
clauses_analyze_riskAssess clause riskСамо четенеAssess the risk of one clause's wording for a party under a jurisdiction: risk score, risk factors, compliance issues, alternatives and negotiation tips.
Права:CLAUSES_READ· 30 извиквания в минутаclauses_check_playbookCheck clause against playbookСамо четенеCheck a clause against one of your organisation's negotiation playbooks and list the rules it breaks or should be reviewed against.
Права:CLAUSES_READ· 30 извиквания в минутаclauses_compare_to_marketCompare clause to marketСамо четенеCompare a clause with market-standard clauses of the same category from the clause library.
Права:CLAUSES_READ· 20 извиквания в минутаclauses_searchSearch clause libraryСамо четенеSearch Attorly's clause library and your organisation's clauses for standard wording, by text and optionally category and jurisdiction. Use it to find a model clause to propose or compare against.
Права:CLAUSES_READ· 50 извиквания в минута
Проучване
research_get_statuteGet statuteСамо четене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.
Права:RESEARCH_READ· 100 извиквания в минутаresearch_searchSearch legal sourcesСамо четенеSearch public legal sources — legislation and case law from Lovdata, EUR-Lex, legislation.gov.uk, Congress.gov, CourtListener and Finlex — for a legal question or term. Results carry citations and links to the official source.
Права:RESEARCH_READ· 50 извиквания в минута
Предложения за промени
redlines_applyResolve redlinesПроменя данниRecord which proposed redline changes on a document are accepted and which are rejected. A resolution overwrites any earlier decision on the same changes.
Права:REDLINES_GENERATE· 30 извиквания в минутаredlines_generatePropose redlinesПродължителна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.
Права:REDLINES_GENERATE· 20 извиквания в минута
Преговори
negotiations_analyze_positionAnalyse negotiation positionПродължителна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.
Права:NEGOTIATIONS_READ· 20 извиквания в минутаnegotiations_generate_playbookGenerate negotiation playbookПродължителна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.
Права:NEGOTIATIONS_READ· 20 извиквания в минута
Работни процеси
workflows_executeRun workflowПродължителна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.
Права:WORKFLOWS_EXECUTE· 10 извиквания в минутаworkflows_get_statusGet workflow statusСамо четенеGet the status, timing, variables and (optionally) step-by-step results of a workflow execution by its executionId.
Права:WORKFLOWS_EXECUTE· 100 извиквания в минутаworkflows_list_executionsList workflow executionsСамо четене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.
Права:WORKFLOWS_EXECUTE· 50 извиквания в минутаworkflows_list_templatesList workflow templatesСамо четенеList the workflow templates that can run on a due diligence project: your organisation's and Attorly's built-in ones, with their templateId.
Права:WORKFLOWS_EXECUTE· 50 извиквания в минута
Дю дилиджънс
due_diligence_add_documentsAdd documents to due diligenceAdd stored documents to a due diligence project's data room, optionally under a category. Adding a document twice has no further effect.
Права:DUE_DILIGENCE_FULL· 30 извиквания в минутаdue_diligence_create_projectCreate due diligence projectCreate a due diligence project for a transaction (acquisition, merger, investment, IPO, real estate, regulatory review) in your organisation.
Права:DUE_DILIGENCE_FULL· 20 извиквания в минутаdue_diligence_generate_reportGenerate due diligence reportПродължителна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.
Права:DUE_DILIGENCE_FULL· 5 извиквания в минутаdue_diligence_get_findingsGet due diligence findingsСамо четенеList the risk findings of a due diligence project with their severity, category and recommendation, and the count per severity.
Права:DUE_DILIGENCE_FULL· 50 извиквания в минутаdue_diligence_get_projectGet due diligence projectСамо четенеGet one due diligence project of your organisation: type, target, status, priority, due date, and how many documents and findings it has.
Права:DUE_DILIGENCE_FULL· 100 извиквания в минутаdue_diligence_list_projectsList due diligence projectsСамо четене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.
Права:DUE_DILIGENCE_FULL· 50 извиквания в минута
Шаблони и проекти
templates_draftDraft from templateCreate a draft from a template and the variable values you supply. The draft is saved in Attorly and returned as Markdown.
Права:TEMPLATES_DRAFT· 30 извиквания в минутаtemplates_generate_aiDraft with AIПродължителна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.
Права:TEMPLATES_DRAFT· 10 извиквания в минутаtemplates_listList templatesСамо четенеList document templates (contracts, letters, policies) available to you, by category, jurisdiction and language, with the variables each one needs.
Права:TEMPLATES_READ· 50 извиквания в минута
Други
organization_get_contextGet account contextСамо четене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.
Права:· 60 извиквания в минута
Отстраняване на проблеми
- Клиентът съобщава 401 Unauthorized.
- Ключът липсва, въведен е грешно, отменен е или е изтекъл. Проверете дали заглавката е Authorization: Bearer, последвано от целия ключ, без кавички и интервали. Ако не сте сигурни, сменете ключа в Настройки › Разработчици и поставете новата конфигурация.
- Инструмент се проваля с insufficient_scope.
- На ключа му липсва право, от което инструментът се нуждае. Създайте ключ с предварителна настройка Стандартен или Пълен достъп, или персонализиран ключ с това право.
- Извикванията се провалят с rate_limited.
- Всеки инструмент позволява определен брой извиквания в минута на ключ. Изчакайте посочения в грешката брой секунди и опитайте отново.
- Клиентът показва по-малко инструменти от тази страница.
- Инструментите, за които ключът няма право, не се показват. След смяна на ключа рестартирайте клиента, за да изтегли отново списъка с инструменти.
- Claude Desktop показва сървъра като неуспешен.
- mcp-remote изисква Node.js 18 или по-нова версия. Инсталирайте го от nodejs.org, после затворете и отворете отново Claude Desktop. Дневникът е в Claude Desktop в Settings › Developer.
Протоколът на ръка
За създаване на собствен клиент или проверка на ключ от терминала: трите извиквания, които прави всеки клиент.
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"}}}'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"}'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}}}'