An MCP server that uses a demo Layer account.
This requires you to have a valid MCP client that supports tools, as well as a demo Layer account.
To use this demo server, you must first note your Layer API key. Then, you can launch the server with the following command:
# Replace LAYER_API_KEY_HERE with your API key
npx @buildwithlayer/layer-mcp-demo --Layer-Api-Key={LAYER_API_KEY_HERE} --{other-authentication-flags}
Add the other authentication flags as needed. They match for the name expected by in the headers of the api request.
You can also add it directly to an MCP client. Here is an example of how to add it to cursor:
- Go to Cursor Settings > Features > MCP
- Click the
+ Add New MCP Server
button - Name it whatever you like (
layer-mcp-demo
for example) - Set the
Type
tocommand
- Set the
Command
tonpx @buildwithlayer/layer-mcp-demo --Layer-Api-Key=LAYER_API_KEY_HERE
, replacingLAYER_API_KEY_HERE
with your API key