Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect Misoca to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/misoca.md
Invoicing

How to connect Misoca to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itAnyone with a Misoca account (including sole proprietors and freelancers). For the REST API, you register your own OAuth application after signing in and can access your own data with no review. The official MCP is for paid-plan subscribers.
MethodOfficial MCP (remote) / Official API (REST)
PricingThe REST API has no additional charge and can be used on the free plan. The official MCP is limited to paid plans. Misoca itself has free and paid plans, and plans cap things such as the number of invoices you can create per month.
RiskThe REST API's write scope can create, update and delete invoices, and the postal-mail proxy API can trigger actual dispatch to contacts. Managing the secret and refresh token is effectively managing your billing operations' authority. Invoice and contact data contains confidential information such as contact persons' names, addresses and amounts, so when handing it to an AI service, check the data path and training-use settings. The API is unwarranted and unsupported, so if you build it into core operations, prepare a manual fallback for outages.

Yayoi's cloud invoicing service. It has an official MCP server, 'Misoca MCP', which lets you create and search invoices, update payment statuses and register contacts from Claude's connectors (paid plans only, offered in beta). API v3 is also publicly documented: anyone with a Misoca account can register an OAuth application after signing in and use it with no review, including on the free plan. It can read and write invoices, estimates, delivery slips, contacts and items. However, the API is provided as-is with no support, and access tokens are valid for only one day.

AuthenticationOAuth 2.0 (authorization code flow). Register an application in the admin screens after signing in to obtain an application ID and secret. Scopes are read / write (write includes read). Access tokens are valid for one day and must be refreshed.
Checked by the operator2026.12.05
How the operator checkedChecked against official documentation

For AI agents: Markdown ・ JSON

Official MCP and AI guides

Official MCP serverYes

Hosting: Remote

Yayoi's official MCP server. In Claude, go to Settings → Connectors, select Misoca from the list and allow the connection (a custom connector must be added the first time). Paid plans only, and currently offered in beta. It covers invoice creation, search, status changes and PDF retrieval, payment matching (marking invoices as paid), and contact creation and search; invoice updates and deletions, email sending, estimates and delivery slips are stated to be out of scope. Tool names are not published, so the tools below are based on the official page's feature descriptions.

https://www.yayoi-kk.co.jp/seikyusho/scene/mcp/

Official guide for AI agentsYes

Yayoi's official site has an AI integration (MCP) introduction page, which also explains how to connect with Claude (select Misoca from the connectors and allow the connection).

https://www.yayoi-kk.co.jp/seikyusho/scene/mcp/

Tools of the official MCP server

ToolTypeWhat it does
請求書を作成WriteCreates an invoice from specified line items and amounts (based on the official page's feature descriptions).
請求書を検索・取得ReadSearches created invoices and shows their contents.
請求書の PDF を取得ReadRetrieves an invoice's PDF.
入金ステータスを更新WriteMarks an invoice as paid by matching it against payment records (payment matching).
送り先を作成WriteRegisters a new contact (billing destination).
送り先を検索ReadSearches registered contacts.

Connectors

Official connectors from AI services

  • Claude

    You can select Misoca from Claude's connector list and connect (the official MCP; a custom connector must be added the first time). Paid plans only.

Not supported: ChatGPT, Gemini, Microsoft Copilot

Third-party integration services

  • Yoom

    Yoom has a Misoca app, with actions such as 'Create invoice' and 'Get invoice PDF', and many templates triggered by invoice creation. It links with Misoca's API no-code.

Not supported: Zapier, Make, n8n, Power Automate, IFTTT, Pipedream, Composio

Security assessment

For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.

Official MCPOfficial MCP serverThe service provider
Permissions requiredRead and write

Limited to invoice creation, search, status changes and PDF retrieval, plus contact creation and search. Updates, deletions and email sending are out of scope for the MCP, making its range of operations narrower than the REST API's write scope.

Terms of serviceConditional

The Misoca Terms of Use apply. Because it is paid-plan-only and offered in beta, Yayoi notes that specifications and procedures may change.

Source: relevant section of the terms

Data pathInvoice and contact data is sent to the connected AI service (such as Claude). It contains confidential information such as contact persons' names, addresses and amounts, so checking the AI side's training-use settings is a prerequisite.
Official connectorClaudeThe service provider
Permissions requiredRead and write

Limited to the official MCP's scope (invoice creation, search, status changes and PDF retrieval, plus contact creation and search). Updates, deletions and email sending are out of scope.

Terms of serviceConditional

Paid plans only, offered in beta. The Misoca Terms of Use apply.

Source: relevant section of the terms

Data pathThrough the official MCP, invoice and contact data is sent to Claude. It contains confidential information, so checking Claude's training-use settings is a prerequisite.
Third-party integrationYoomOfficial from the integration service
Permissions requiredRead and write

Limited to the actions Yoom provides (invoice creation, PDF retrieval, etc.). The underlying Misoca-side authority follows the registered credentials.

Terms of serviceConditional

The API's as-is, no-support terms are unchanged when going through Yoom. Managing the credentials is your own responsibility.

Source: relevant section of the terms

Data pathInvoice data and PDFs handled in flows pass through Yoom's servers. Connecting requires registering your Misoca credentials with Yoom.

Data you can fetch within the terms of service

Through API v3 you can read and write invoices, estimates, delivery slips, contacts, billing destinations, items and user information within your scope. List retrieval allows up to 100 items per page (per_page). No per-unit-time call limit is stated in the documentation.

ScrapingNot stated in terms

Use of the API is governed by the Misoca Terms of Use, and the Yayoi Related Services Basic Terms of Use also apply. The Basic Terms prohibit acts such as obstructing service operations, overloading and unauthorized access, but no provision naming scraping could be confirmed. The official documentation states that the API is provided as-is, that no support is offered, and that it may change without notice.

Source: relevant section of the terms of service

Fetching with the agent's own browser

There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.

Usage

How to connect

  1. Create a Misoca account (the REST API works on the free plan too).
  2. To use it from Claude, on a paid plan go to Claude's Settings → Connectors, select Misoca, and allow the connection (official MCP).
  3. To use the REST API, while signed in, open https://app.misoca.jp/oauth2/applications and register a name and callback URLs under 'New Application'.
  4. Using the application ID and secret shown, obtain an access token through the OAuth2 authorization flow (https://app.misoca.jp/oauth2/authorize → https://app.misoca.jp/oauth2/token). The scope you need is read or write.
  5. Call the APIs under https://app.misoca.jp/api/v3/ with the token in the Authorization header.

Setup examples

Paste these as they are. Replace the API key, domain and similar values with your own.

Claude Code (official MCP)
claude mcp add --transport http misoca <接続先URL>

Replace <connection URL> with the URL provided during that flow. Paid plans only, offered in beta. Whether this command form works is unverified.

Official page checked: https://www.yayoi-kk.co.jp/seikyusho/scene/mcp/

Listing invoices
curl 'https://app.misoca.jp/api/v3/invoices?per_page=25' -H 'Authorization: Bearer <アクセストークン>'

Replace <access token> with the access token obtained through the OAuth2 flow. Tokens expire after one day, so re-obtain one with the refresh token when expired.

Official page checked: https://doc.misoca.jp/

Limiting the features

Use the read scope for read-only access
scope=read

If you only need to read invoices, estimates, delivery slips and contacts, the read scope is enough. Request only the scope you need in the authorization request.

Official page checked: https://doc.misoca.jp/

Use the write scope for creation and updates
scope=write

Write includes read. It can create, update and delete invoices and even use the postal-mail proxy, so insert a confirmation step before an agent executes. If you only need reading plus invoice creation and search, the official MCP's range is narrower because it excludes some operations.

Official page checked: https://doc.misoca.jp/

Listing invoices

Instruction to the agent

Get this month's list of invoices via the Misoca API

Call GET https://app.misoca.jp/api/v3/invoices?per_page=100 with the access token in the Authorization header. Follow the Link header in the response to page through results.

Creating an invoice and fetching its PDF

Instruction to the agent

Create an invoice with these details and get the PDF

POST https://app.misoca.jp/api/v3/invoice with the contact, line items and amounts to create an invoice, then GET https://app.misoca.jp/api/v3/invoice/{id}/pdf to fetch the PDF. To mark it as billed, use PUT https://app.misoca.jp/api/v3/invoice/{id}/submitted (a status change only — nothing is sent).

Pitfalls and tips

Pitfalls

  • The API is provided 'as is' and no support is offered. Specifications may change without notice, and Yayoi states it bears no responsibility for damages arising from specification changes.
  • Access tokens are valid for only one day (shortened from 90 days in 2019). Long-running processes must be built around refreshing.
  • PUT /api/v3/invoice/{id}/submitted only changes the invoice status to 'billed' — it does not send email or postal mail (and DELETE reverts it to unbilled). Actual dispatch to the contact happens through the postal-mail proxy API, POST /api/v3/invoice/{id}/send_by_postal_mail; API v3 has no email-sending endpoint.
  • Creating invoices consumes the plan's monthly creation allowance. Build in content checks and count controls so an agent malfunction or loop cannot exhaust the allowance.
  • The official MCP and the REST API cover different things. The MCP is limited to creation, search, status changes, PDFs and contacts; updates, deletions, estimates and delivery slips are REST API territory.
  • List endpoints use plural paths (/api/v3/invoices) while creation and single-item retrieval use singular paths (/api/v3/invoice) — easy to confuse.

Tips

  • Start by checking connectivity with GET https://app.misoca.jp/api/v3/user/me — it makes it easy to isolate token and scope problems.
  • List retrieval follows the Web Linking style: follow rel=next in the Link header. per_page maxes at 100.
  • If you only need reading plus invoice creation and search, the official MCP (paid plans) is often enough. Use the REST API when you need updates, deletions, estimates or delivery slips.

Test environment and change history

How it was checkedChecked against official documentation
Clients triedNot yet tried with a real client

The API's registration flow, authentication, scopes and terms were confirmed in the official documentation at doc.misoca.jp, and the official MCP's availability and eligible plans on Yayoi's official site. No account was created and no live connection was made.

Change history

  • First edition

Sources

Official and primary sources

Pages published by the service provider, the integration provider or the MCP author about their own product.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect Amazon to AI agents

Business or paid only

How to connect Backlog to AI agents

Official, individuals OK

How to connect ChatGPT (OpenAI) to AI agents

Official, individuals OK

How to connect Garoon to AI agents

Business or paid only