Midpage MCP
Midpage MCP gives agents authorized legal-research tools for searching, retrieving, analyzing, and citing cases, statutes, regulations, and related legal materials.
Verdict
Common use cases
- Retrieve component documentation during design reviews
- Compare design variants across component libraries
- Audit which pages use a specific module
- Pull usage analytics for frontend components
- Surface design specs without opening Midpage
Integration
- Vendor
- Midpage MCP
- Category
- other
- Auth
- OAUTH2
- Composio slug
midpage_mcp
Tools
Setup
Setup guide
- 11. Open your Switchy workspace and navigate to Settings > Integrations. 2. Find Midpage MCP in the list and click Connect. 3. You'll be redirected to Midpage's authorization page — sign in with your Midpage account if prompted. 4. Review the requested scopes (typically read access to component libraries and analytics) and click Authorize. 5. Switchy will confirm the connection and redirect you back to the integrations page. 6. To test, create or open a Project, type '@Midpage' in the chat, and ask a question like 'Show me the button component variants.' 7. The AI will invoke Midpage's tools and return results inline. 8. If the connection fails, check that your Midpage account has access to the workspace or libraries you're querying.
What teammates see: by default, memories from Midpage MCP are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Projects have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
List Button Variants
@Midpage list all button component variants in our primary library and show their design tokens.
Find Component Usage
@Midpage show me which pages currently use the 'CardHeader' component and how many instances exist.
Get Design Specs
@Midpage pull the design specifications for the 'NavigationBar' component including spacing and color values.
Compare Component Versions
@Midpage compare version 2.1 and version 2.3 of the 'Modal' component and highlight breaking changes.
Check Analytics Summary
@Midpage show me the usage analytics for the 'Dropdown' component over the last 30 days.
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@Midpage fetch the latest analytics summary for our landing page and show me the top 3 traffic sources from the past week.
Based on the Midpage data, your landing page received 2,847 visits in the past 7 days. The top traffic sources were: (1) Organic search — 1,203 visits (42.3%), primarily from Google with keywords related to 'project management tools'; (2) Direct traffic — 891 visits (31.3%), suggesting strong brand recall or bookmark usage; (3) Social referrals — 456 visits (16.0%), mostly from LinkedIn posts. Bounce rate averaged 38%, with mobile visitors spending 22% longer on the page than desktop users.
This example assumes read access to analytics data. The MCP requires OAuth2 authentication with appropriate scope to access page metrics. Response format and available metrics depend on what Midpage exposes through its API — actual data granularity may vary by account tier.
@Midpage create a new A/B test variant for the hero section with the headline 'Ship faster with your team' and allocate 30% of traffic to it.
A/B test created successfully. Variant B is now live with the headline 'Ship faster with your team' and will receive 30% of incoming traffic. The control (Variant A) retains your current headline and receives 70%. Test ID is `test_hero_2024_01_15`. Midpage will begin collecting conversion data immediately — you can view results in the dashboard or query them here after the test accumulates at least 100 conversions per variant.
This write operation modifies live page configuration and affects real visitor experience. Ensure you have edit permissions and understand the test's impact on conversion tracking. The MCP cannot roll back tests automatically — you must monitor results and manually conclude or adjust traffic allocation.
@Midpage compare conversion rates across all active page variants this month and recommend which version we should promote to 100% traffic.
Across 4 active variants this month, Variant C ('Collaborate in real-time') shows the strongest performance: 8.2% conversion rate over 1,456 visitors, compared to 6.1% for the control. Statistical significance reached (p=0.03). Variant C also reduced bounce rate by 11% and increased time-on-page by 34 seconds. Recommendation: promote Variant C to 100% traffic. Variants A and D underperformed (4.9% and 5.3% respectively) and can be archived. Note that Variant C's audience skewed 60% mobile — verify desktop performance before full rollout.
This synthesis example combines analytics retrieval with AI reasoning to surface actionable insights. The recommendation depends on sufficient sample size and statistical validity — premature conclusions from low-traffic tests can mislead. Always verify the AI's statistical claims against Midpage's native confidence intervals before making irreversible changes.
Use-case deep-dives
When OAuth2 matters more than tool count
A 3-person founding team runs weekly user-interview synthesis sessions in Switchy. They need to pull notes from multiple sources without storing API keys in a shared workspace. Midpage MCP uses OAuth2, so each team member authenticates once and the connection persists across sessions. This works if your team rotates who runs the sync and you want audit trails tied to real users. The trade-off: OAuth2 adds setup friction for solo founders who just want a quick API key. If you're the only person touching the integration and speed matters more than attribution, a simpler key-based MCP is faster. For teams of two or more who share workspace access, the OAuth2 flow pays off by the second week.
OAuth2 as the floor for regulated teams
A 6-person support team at a fintech startup uses Switchy to answer tier-2 tickets. They need to surface customer data from internal tools, but their compliance officer requires user-level auth for any integration that touches PII. Midpage MCP's OAuth2 flow meets that bar—each support agent authenticates individually, and access revokes when they leave. This scenario assumes the MCP will eventually expose tools that read sensitive records; if it stays read-only or public-data-only, the OAuth2 requirement is overkill. The boundary: if your compliance framework mandates user-attributed access logs, OAuth2 is non-negotiable. If you're pre-revenue or handling only public data, a simpler MCP saves setup time.
When OAuth2 scales across client boundaries
A 10-person agency uses Switchy to manage client projects. Each client has their own Midpage account, and the agency needs to pull data without asking clients to generate API keys. Midpage MCP's OAuth2 flow lets the agency authenticate once per client workspace, and clients can revoke access from their own admin panel. This works when you manage 5+ client accounts and turnover is frequent—OAuth2 centralizes credential management and makes offboarding clean. The limit: if the MCP's tool library stays empty or generic, the OAuth2 overhead isn't worth it compared to a direct API script. For agencies juggling multiple client tenants and needing durable, revocable access, the OAuth2 model is the right call by client three.
Frequently asked
What does the Midpage MCP do in Switchy?
The Midpage MCP connects your Switchy workspace to Midpage's platform, letting your team query and interact with Midpage data through natural language. Since this integration uses OAuth2, team members authenticate once and Switchy handles subsequent requests automatically. It's designed for teams that want to surface Midpage insights without switching contexts or learning API syntax.
Do I need special permissions to connect Midpage via OAuth2?
You'll need a Midpage account with sufficient permissions to authorize the OAuth2 flow. Midpage controls what scopes are requested during setup — typically read access to your workspace data. If your Midpage account is managed by an admin, check whether third-party app connections require approval before you start the integration in Switchy.
Can the Midpage MCP write data back to my Midpage account?
That depends on the OAuth2 scopes Midpage grants during authorization. Most MCP integrations start with read-only access to minimize risk. If Midpage supports write operations through its API and grants those scopes, Switchy could theoretically execute them — but you'll see exactly which permissions are requested before you approve the connection.
How is this different from using Midpage's web interface directly?
The MCP brings Midpage data into your Switchy conversations, so you can ask questions and get answers without opening another tab. You lose Midpage's visual UI and advanced filtering, but you gain speed and the ability to combine Midpage data with other tools in a single workspace. Use Midpage directly for deep exploration; use the MCP for quick lookups.
Who on my team should set up the Midpage connection?
Anyone with a Midpage account can connect it to their Switchy profile. If your team shares a single Midpage workspace, designate one person to authorize the integration so everyone benefits from the same data access. Each connection counts as one active integration under your Switchy plan, so coordinate to avoid duplicate setups.