MCP Integration
Connect PowerLibs to Claude, GitHub Copilot, VS Code, Cursor, or any MCP client and generate Power Apps components directly in chat. Ask for what you need in natural language and get ready-to-paste YAML.
What is MCP?
MCP (Model Context Protocol) lets AI tools connect to external services. When you connect PowerLibs via MCP, your AI assistant can:
- Browse all available components
- See component settings and options
- Generate custom YAML code based on your requests
- Look up PowerFX functions with syntax and examples
- Build forms from column definitions (with full access, see below)
- Review Power Apps screenshots with a structured visual design framework
- Find icons in the icon library (13 free sets, Fluent included) and get them as paste-ready YAML or an Image formula
Instead of copying from the website, you can just ask: "Create a blue navigation bar with 5 items" and get ready-to-paste YAML.
PowerLibs MCP is available to all users with a free PowerLibs account. Sign up at powerlibs.com to get started.
What each plan gets
MCP access has three levels, decided by your PowerLibs plan. Full access comes with every paid plan except the old Components subscription (see Which plan do I need?):
| Free account | Components subscription (no longer sold) | Full access | |
|---|---|---|---|
| Search & Browse | All components visible, paid ones marked locked | All components visible, full apps marked locked | All components visible |
| YAML Generation | 14 free components | Every component except full apps | All 180+ components, full apps included |
| PowerFX Reference | Full access | Full access | Full access |
| Design Review Guide | Full access | Full access | Full access |
| What's New | Full access | Full access | Full access |
| Icon library | Full access | Full access | Full access |
| Form Builder | Not included | Not included | Included |
| Logo Generator | Not included | Not included | Included |
| YAML rules (syntax guide, mistakes to avoid, Studio troubleshooting) | Full access | Full access | Full access |
| YAML examples (whole library components as templates) | Not included | Not included | Included |
| Request limit | 100 requests an hour | No limit | No limit |
Free accounts can see all components when browsing, but YAML generation is limited to the 14 free components, and component and YAML responses carry a short upgrade hint. The old Components subscription unlocks the paid components but not the full apps, the Form Builder, the Logo Generator or the YAML examples. The YAML rules are free on every plan: they help your assistant write YAML that pastes, while the tested components stay part of the paid plans. Full access unlocks everything. See pricing for the plans.
Connect with Claude
1. Click Connect to Claude
Click Connect to Claude on the MCP page, or use this link:
Claude opens the Add custom connector window with the name and the URL already filled in. If you are signed out of Claude, it asks you to sign in first. Check the values, click Add, then Connect.
2. Authorize
Claude sends you to PowerLibs. If you are signed out you see the login page; once signed in you are sent straight back to Claude. There is nothing to approve.
3. Add it by hand instead
If the button does not work for you, add the connector yourself. In Claude, go to Customize, then Connectors, click Add custom connector and paste this URL:
https://www.powerlibs.com/api/mcp
On the free Claude plan you can add one custom connector. If you already have one, remove it first or upgrade your Claude plan.
4. Start Using
You can now ask Claude to generate Power Apps components!
Connect with Claude Code
Claude Code signs in with your PowerLibs account, so you do not need an API key.
- In your terminal, run:
claude mcp add --transport http powerlibs https://www.powerlibs.com/api/mcp
- Start Claude Code, type
/mcp, pick powerlibs and choose Authenticate. - A browser window opens. Sign in to PowerLibs and you are sent back to Claude Code.
Connect with Codex
Codex also signs in with your PowerLibs account, no API key needed.
- In your terminal, run:
codex mcp add powerlibs --url https://www.powerlibs.com/api/mcp && codex mcp login powerlibs
- A browser window opens. Sign in to PowerLibs and you are sent back to Codex.
Connect with VS Code / GitHub Copilot / Cursor
For MCP clients that ask for a static Bearer token (like GitHub Copilot in VS Code, Cursor, or Windsurf), you need an API key.
1. Generate an API Key
Go to powerlibs.com/mcp/api-key, give the key a name and click Generate Key. Copy the key straight away: it is only shown once. Any signed-in user can create API keys. An account with full access can hold 5 keys, every other account 1. Every key expires one year after it was created; the expiry date is shown next to each key.
2. Install with one click
Right after you generate a key, the page shows Install in VS Code and Install in Cursor buttons. They open your editor with PowerLibs and your key already filled in, and the editor asks you to confirm. The buttons only work when the desktop app is installed on the same computer. If nothing happens, use step 3 instead.
3. Or add it to your MCP config by hand
VS Code / GitHub Copilot: create or edit .vscode/mcp.json in your project:
{
"servers": {
"powerlibs": {
"type": "http",
"url": "https://www.powerlibs.com/api/mcp",
"headers": {
"Authorization": "Bearer pl_your_key_here"
}
}
}
}
Cursor: create or edit .cursor/mcp.json in your project:
{
"mcpServers": {
"powerlibs": {
"type": "http",
"url": "https://www.powerlibs.com/api/mcp",
"headers": {
"Authorization": "Bearer pl_your_key_here"
}
}
}
}
VS Code uses "servers" while Cursor uses "mcpServers": using the wrong key will give you an error.
4. Done
Your MCP client now has access to PowerLibs tools. Ask it to generate components!
If you need a new key, go back to powerlibs.com/mcp/api-key and click Generate Key again. Once you hold as many keys as your account allows, the name box and the button disappear until you revoke a key. To stop an old key, click Revoke next to it and confirm. Any MCP client using that key stops working immediately.
Available Tools
When connected, your AI assistant has access to these 18 tools. Fifteen work on every account, among them the YAML rules. The three marked Full access need a paid plan other than the old Components subscription.
list_components
Browse all 180+ available components, optionally filtered by category.
get_component_details
Get detailed information about a specific component including its available settings and default configuration. For a component your plan does not include, it returns the name and description with an upgrade note, not the settings.
generate_yaml
Generate Power Apps YAML code with custom settings. The generated YAML can be copied directly into Power Apps Studio. The yaml_mode option picks classic controls (the default) or modern controls for the components that have a modern version. With colorMode: "app-theme" in the global settings the brand color is written as AppTheme.BrandPrimary, for apps that already have the PowerColors theme in App.Formulas.
search_components
Find components by keyword. Searches component names, descriptions, and categories.
list_powerfx_functions
List all available PowerFX functions grouped by category (Data, Logic, Math, Text, Navigation, etc.).
get_powerfx_function_details
Get full details for a specific PowerFX function including syntax, examples, and description.
search_powerfx_functions
Search PowerFX functions by keyword.
generate_form_from_columns
Full access only. Build a complete Power Apps form from column definitions (e.g. from a CSV or data source). Returns form YAML and an optional Patch formula for saving.
Text, number and email columns become text boxes, date columns a date picker, and choice columns a dropdown. Tell your AI the choices (for example "Status: Not started, In progress, Done") and the dropdown lists exactly those. Without choices but with a data source name, the dropdown reads the column's own choices with Choices(). Without either, it shows placeholder items and the answer says so. Number columns are saved with Value(), so Patch does not fail on a Number column.
generate_logo
Full access only. Makes a logo with the Logo Generator: one Lucide icon on a square, a rounded square or a circle, with a solid or gradient background. It returns the SVG plus three pastes: the logo as an Image control, a header bar with the logo and your app name, and a splash screen. Without colors it uses the brand color your assistant passes along, or PowerLibs blue when it passes none, so tell it your color. If your assistant is unsure of an icon name it can search first (for example "truck" or "calendar check").
It is not an image model, so it cannot draw pictures, mascots or lettering. For the app icon in Studio's Settings you need a PNG, which you download from the website.
get_powerapps_design_review_guide
Get the free PowerLibs visual design review framework for Power Apps screenshots. Your AI assistant uses the guide to score color system, spacing and alignment, icons, feedback states, and typography, then returns a prioritized fix list.
This tool does not upload or process screenshots inside PowerLibs. It gives your AI assistant the review framework, and the assistant reviews the screenshot already available in your chat.
whats_new
Works on every plan. Returns the components added recently (the last 30 days by default, up to 365) and the newest changelog entries.
get_app_setup_guide
Works on every plan. Takes you through the setup of the Helpdesk App one step at a time: creating the six SharePoint lists with a flow, adding them to a new app, pasting the app, becoming admin, sharing, and the optional e-mail flows. Your assistant gets the same steps as the app page, the lists with their columns, what each step should end with, and what to do when something goes wrong. Ask it: "Help me set up the PowerLibs Helpdesk app, one step at a time." The app itself is copied on the page with Copy YAML, it is too large for a chat.
The same tool serves the complete Project Management App: six lists, the app, the first-run setup, sharing, and three optional mail flows (assignment mail, due reminders, weekly digest). Ask it: "Help me set up the PowerLibs Project Management app, one step at a time."
It also serves the complete Leave Request App: five lists, the app, the first-run setup with your team, sharing, and two optional mail flows (new request, decision). Ask it: "Help me set up the PowerLibs Leave Request app, one step at a time."
get_studio_troubleshooting_guide
Works on every plan. For when Power Apps Studio or Power Automate does not do what you expect: a paste that fails without a reason, a border cut off in a gallery, a button that flashes grey when clicked, a redirect Studio rejects, errors everywhere after one failed save, stale data, a colleague who cannot save, flow steps that will not paste. Your assistant gets the symptom, the cause and the fix for each case, with the wrong and the right YAML where there is one. Everything in it was found by building real apps in Studio. Ask it: "My pasted screen looks wrong in Studio, what could it be?"
search_icons
Works on every plan. Searches the icon library: all 13 sets, or one (for example only Fluent, the closest match to Microsoft 365). It finds icons by name, tag and common synonym, so "delete" also finds trash icons, and returns each icon's library, name and page. Fluent and Heroicons can be limited to their filled or regular style. Without a search word it lists the libraries with their icon counts and licenses.
get_icon
Works on every plan. Returns one icon as Power Apps code, the same code the copy buttons on the website give:
image: an Image control (YAML)clickable: an Image with a transparent button on top, for OnSelect (YAML)image_formula: only the value for the Image propertyselected_state:If(ThisItem.IsSelected, <filled>, <regular>)for an Image in a gallery, for Fluent and Heroicons icons that have both styles
The color is a hex color, or a Power Fx color such as App.Theme.Colors.Primary or If(ThisItem.IsSelected, Color.RoyalBlue, Color.Gray), which is written into the icon so it follows your app. Line icons take a stroke width, every icon a rotation. The YAML sets the AccessibleLabel, and the tooltip on clickable icons.
get_yaml_syntax_guide
Works on every plan. Returns the Power Apps YAML syntax reference: control types and versions, property rules, layout patterns, and the properties each control does not accept.
get_yaml_error_patterns
Works on every plan. Returns common Power Apps YAML mistakes, each with the wrong and the right YAML, so your assistant can avoid paste errors and the things that paste but look or behave wrong.
get_yaml_examples
Full access only. Returns up to 4 complete, working YAML examples from the PowerLibs library that match what you describe.
prepare_yaml_generation
Works on every plan, with examples only on full access. The tool your assistant is told to call before writing any Power Apps YAML from scratch. It returns the syntax reference and only the mistake patterns relevant to your request. With full access it adds up to 4 matching components from the library as templates, so the three tools above are rarely needed on their own.
Example Prompts
Basic Component Generation
"Generate a gradient button with green colors and the text 'Submit Form'"
Browsing Components
"What navigation components are available in PowerLibs?"
Custom Configuration
"Create a responsive app shell with 4 nav items: Home, Dashboard, Settings, Profile. Use a dark blue sidebar."
Finding Components
"Search for components that have loading states"
Getting Details
"Show me the available settings for the Toast component"
PowerFX Help
"How does the Patch function work in Power Apps?"
Form from Data
"Build a form with fields: FirstName (text), StartDate (date), Department (dropdown)"
Logo
"Make a logo for my Field Inspections app with a clipboard check icon in our brand blue, and give me the header bar."
Design Review
"Review this Power Apps screenshot using the PowerLibs design review framework."
"Why does this Canvas app look unprofessional, and what should I fix first?"
Tips for Better Results
Be Specific About Colors
Instead of: "Make it blue" Try: "Use #3B82F6 for the background color"
Mention Power Apps Context
Claude knows PowerLibs generates Power Apps YAML, but reminding it helps:
"Generate a Power Apps modal dialog with..."
Ask for Multiple Options
"Show me 3 different button styles I could use for a submit action"
Request Explanations
"Generate a tab bar and explain what each property does"
Claude can generate multiple components in one conversation. Ask it to create a navigation bar, then a modal, then some buttons - all with matching colors.
Limitations
Component Coverage
Every component is available via MCP, and so are the Form Builder (as generate_form_from_columns) and the Logo Generator (as generate_logo), both with full access only. generate_form_from_columns makes a one-page form built on the Modern Form component, so its control names (such as txtInput1, conDate2 and conDropdown3) differ from the ones the website's Form Builder writes; the answer lists which control belongs to which column. The icon library is available on every plan as search_icons and get_icon. The Multi-Step Form Builder, PowerColors and the SharePoint Admin Generator are website-only.
No Preview
MCP generates code but can't show visual previews. For previews, use the website.
Authentication
- Claude, Claude Code and Codex: The sign-in lasts 30 days and the client renews it by itself. After 90 days without a renewal you have to sign in again. If the client can't connect, reconnect PowerLibs in its settings.
- VS Code / Copilot / Cursor: API keys expire after 1 year. Generate a new one at powerlibs.com/mcp/api-key.
Troubleshooting
"Authorization failed"
- Make sure you have a PowerLibs account
- Try disconnecting and reconnecting in Claude settings
- For API keys, verify the key hasn't been revoked
"This component needs a full PowerLibs plan"
- You're on a free account trying to generate YAML for a paid component
- Buy a plan at powerlibs.com/pricing to unlock the paid components
- Use
list_componentsto see which components are free
"Full apps need a full PowerLibs plan"
- Full apps need a paid plan other than the old Components subscription.
"The Form Builder needs a full PowerLibs plan" or "YAML examples from the PowerLibs library need a full PowerLibs plan"
- These need full access. See the table under "What each plan gets". The YAML rules (syntax guide, mistakes to avoid, Studio troubleshooting) work on every plan.
"generate_logo needs a full PowerLibs plan"
- The
generate_logotool is not part of your plan; see its entry under Available Tools. The Logo Generator on the website is free.
"Rate limit exceeded for free tier (100 requests/hour)"
- Free accounts get 100 requests an hour. Wait for the hour to pass, or buy a plan; an active paid plan has no limit.
- Every message your AI client sends counts as a request, not only tool calls: connecting and reading the tool list count too.
"Tool not available"
- The MCP server might be temporarily down
- Try refreshing Claude
- Check if other MCP tools work
Generated code looks wrong
- MCP generates valid YAML but Claude might truncate long outputs
- Ask Claude to regenerate or output in smaller chunks
Can't find a component
- MCP uses the same component names as the website
- Use
search_componentswith keywords, or pass the component ID fromlist_components, instead of guessing the exact name
MCP-generated code uses default settings unless you specify otherwise. Always review the output before pasting into Power Apps.
Why Use MCP?
Speed
Ask for what you want in natural language. No clicking through menus.
Customization
Describe exactly what you need: "A button like the gradient one but with rounded corners and this hex color..."
Iteration
"Make it bigger" / "Change the text to..." / "Add another item" - iterate quickly in conversation.
Learning
Ask Claude to explain what each part of the YAML does. Great for learning Power Apps.