How to integrate Layer4 using MCP
Query Layer4 tokens and wallets. This guide creates an MCP server from Arthur's Layer4 template — tools preconfigured against https://www.layer4.app/api/v1 — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
LAYER4_API_KEYholding your API key. Generate a bucket API key in the Layer4 web app and send it in the x-api-key header.


Go to the REST API Templates gallery and search for Layer4.


Click Use template on the Layer4 card to open the server-creation dialog.


Review the server name and select
LAYER4_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 3 preconfigured tool(s): list_tokens, get_token, list_wallets. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- List tokens in a Layer4 bucket, retrieve token details, and list workspace wallets.
- This integration requires a credential (api-key). Get one at https://www.layer4.app/.
- Official API documentation: https://www.layer4.app/api-docs
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video