rampify-dev/mcp-server
If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Rampify MCP Server provides real-time SEO intelligence for AI coding tools like Cursor and Claude Code.
Rampify MCP Server
Real-time SEO intelligence for AI coding tools (Cursor, Claude Code).
Installation
Prerequisites
- Node.js 18 or higher
- Backend API running (locally or deployed)
Install Dependencies
cd packages/mcp-server
npm install
Configure Environment
Create a .env file (or copy .env.example):
BACKEND_API_URL=http://localhost:3000
# Or for production:
# BACKEND_API_URL=https://your-domain.com
# Optional
CACHE_TTL=3600
LOG_LEVEL=info
Build
npm run build
Usage
Quick Setup for a Project (Claude CLI)
Recommended: Configure MCP server per-project so each project knows its domain:
cd /path/to/your/project
claude mcp add --scope local rampify "node" \
"/path/to/rampify/packages/mcp-server/build/index.js" \
-e BACKEND_API_URL=https://www.rampify.dev \
-e API_KEY=sk_live_your_api_key_here \
-e SEO_CLIENT_DOMAIN=your-domain.com
# Reload your IDE window
Now you can use MCP tools without specifying domain:
get_page_seo- Automatically uses your project's domainget_issues- Automatically uses your project's domaincrawl_site- Automatically uses your project's domain
Global Setup (Claude CLI)
For global access across all projects (must specify domain in each request):
claude mcp add --scope user rampify "node" \
"/path/to/rampify/packages/mcp-server/build/index.js" \
-e BACKEND_API_URL=https://www.rampify.dev \
-e API_KEY=sk_live_your_api_key_here
# Reload your IDE window
Manual Configuration (Cursor)
Add to your Cursor settings UI or ~/.cursor/config.json:
{
"mcpServers": {
"rampify": {
"command": "node",
"args": [
"/absolute/path/to/rampify/packages/mcp-server/build/index.js"
],
"env": {
"BACKEND_API_URL": "https://www.rampify.dev",
"API_KEY": "sk_live_your_api_key_here",
"SEO_CLIENT_DOMAIN": "your-domain.com"
}
}
}
}
Manual Configuration (Claude Code)
Add to your Claude Code MCP settings:
{
"mcpServers": {
"rampify": {
"command": "node",
"args": [
"/absolute/path/to/rampify/packages/mcp-server/build/index.js"
],
"env": {
"BACKEND_API_URL": "https://www.rampify.dev",
"API_KEY": "sk_live_your_api_key_here",
"SEO_CLIENT_DOMAIN": "your-domain.com"
}
}
}
}
Important: Replace /absolute/path/to/ with the actual path on your machine.
Configuration Options
Environment Variables
BACKEND_API_URL(required): Rampify API endpoint - always usehttps://www.rampify.devAPI_KEY(required): Your API key from Rampify dashboard (starts withsk_live_...)SEO_CLIENT_DOMAIN(optional): Default domain for this project (e.g.,yoursite.com)CACHE_TTL(optional): Cache duration in seconds (default: 3600)LOG_LEVEL(optional):debug,info,warn, orerror(default:info)
How to Use Tools
Discovering Available Tools
Ask Claude directly:
"What SEO tools are available?"
"What can you do for SEO?"
"List all SEO intelligence tools"
Claude will show you all available tools with descriptions.
Natural Language vs Direct Calls
Recommended: Use natural language (Claude will pick the right tool)
"What SEO issues does my site have?" ā Calls get_issues
"Check this page's SEO" ā Calls get_page_seo
"Crawl my site" ā Calls crawl_site
Alternative: Call tools directly (if you know the exact name)
get_issues({ domain: "example.com" })
get_page_seo({ domain: "example.com", url_path: "/blog/post" })
crawl_site({ domain: "example.com" })
Common Workflows
After Deployment:
1. "Crawl my site" (refresh data)
2. "Show me the issues" (review problems)
3. "Check this page's SEO" (verify specific pages)
Before Deployment:
1. "Check SEO of localhost:3000/new-page" (test locally)
2. Fix issues in editor
3. "Re-check SEO" (verify fixes)
4. Deploy when clean!
Regular Monitoring:
1. "What's my site's health score?"
2. "Show critical issues only"
3. Fix high-priority items
4. "Crawl my site" (refresh)
Available Tools
Quick Reference
| Tool | Purpose | When to Use |
|---|---|---|
get_page_seo | Get SEO data for a specific page | Analyzing individual pages, checking performance |
get_issues | Get all SEO issues with health score | Site-wide audits, finding problems |
crawl_site | Trigger fresh crawl | After deployments, to refresh data |
generate_schema | Auto-generate structured data | Adding schema.org JSON-LD to pages |
generate_meta | Generate optimized meta tags | Fixing title/description issues, improving CTR |
1. get_page_seo
Get comprehensive SEO data and insights for a specific page. Works with both production sites AND local dev servers!
Parameters:
domain(optional): Site domain (e.g., "example.com" or "localhost:3000"). UsesSEO_CLIENT_DOMAINenv var if not provided.url_path(optional): Page URL path (e.g., "/blog/post")file_path(optional): Local file path (will be resolved to URL)content(optional): Current file content
Examples:
Production Site:
Ask Claude: "What's the SEO status of this page?" (while editing a file)
# Uses SEO_CLIENT_DOMAIN from env var
Or explicitly:
get_page_seo({ domain: "example.com", url_path: "/blog/post" })
Local Development Server:
Ask Claude: "Audit the local version of this page"
get_page_seo({ domain: "localhost:3000", url_path: "/blog/new-post" })
# Or set default to local:
SEO_CLIENT_DOMAIN=localhost:3000
# Now all queries default to local dev server
Response includes:
- Source indicator:
production_database,local_dev_server, ordirect_content - Fetched from: Exact URL that was analyzed
- Performance metrics (clicks, impressions, position, CTR) - only for production
- Top keywords ranking for this page - only for production
- Detected SEO issues with fixes - works for both local and production
- Quick win opportunities
- AI summary and recommendations
Local Development Workflow
Test pages BEFORE deployment:
-
Start your dev server:
npm run dev # Usually runs on localhost:3000 -
Query local pages:
Ask Claude: "Check SEO of localhost:3000/blog/draft-post" -
Fix issues in your editor, then re-check:
Ask Claude: "Re-check SEO for this page on localhost" -
Deploy when clean!
What gets analyzed locally:
- ā Title tags
- ā Meta descriptions
- ā Heading structure (H1, H2, H3)
- ā Images and alt text
- ā Schema.org structured data
- ā Internal/external links
- ā Search performance (GSC data not available for local)
Response format:
{
"source": "local_dev_server",
"fetched_from": "http://localhost:3000/blog/new-post",
"url": "http://localhost:3000/blog/new-post",
"issues": [...],
"ai_summary": "**Local Development Analysis**..."
}
2. get_issues
Get SEO issues for entire site with health score. Returns a comprehensive report of all detected problems.
Parameters:
domain(optional): Site domain (usesSEO_CLIENT_DOMAINif not provided)filters(optional):severity: Array of severity levels to include (['critical', 'warning', 'info'])issue_types: Array of specific issue typeslimit: Max issues to return (1-100, default: 50)
Examples:
Ask Claude: "What SEO issues does my site have?"
# Uses SEO_CLIENT_DOMAIN from env var
Ask Claude: "Show me only critical SEO issues"
# AI will filter by severity: critical
Ask Claude: "Check SEO issues for example.com"
get_issues({ domain: "example.com" })
Response includes:
- Health score (0-100) and grade (A-F)
- Issue summary by severity (critical, warning, info)
- Detailed list of issues with fix recommendations
- Recommended actions prioritized by impact
Use cases:
- Site-wide SEO audits
- Finding all problems at once
- Tracking improvements over time
- Prioritizing fixes by severity
3. crawl_site
Trigger a fresh site crawl and analysis. This is an active operation that fetches and analyzes all pages.
Parameters:
domain(optional): Site domain (usesSEO_CLIENT_DOMAINif not provided)
Examples:
Ask Claude: "Crawl my site after deploying changes"
# Uses SEO_CLIENT_DOMAIN from env var
Ask Claude: "Analyze example.com"
crawl_site({ domain: "example.com" })
What it does:
- Discovers all URLs (via sitemap or navigation crawl)
- Checks each URL (status, speed, SEO elements)
- Detects issues (missing tags, errors, broken links)
- Updates database with current state
- Automatically clears cache so next
get_issuesorget_page_seoshows fresh data
Response includes:
- Total URLs found
- URLs checked
- Issues detected
- Crawl duration
- Crawl method (sitemap vs navigation)
When to use:
- After deploying code changes
- After fixing SEO issues
- Before running
get_issuesto ensure fresh data - Weekly/monthly for monitoring
Note: This is the only tool that actively crawls your site. get_issues and get_page_seo just fetch existing data.
4. generate_schema
Auto-generate structured data (schema.org JSON-LD) for any page. Detects page type and generates appropriate schema with validation.
Parameters:
domain(optional): Site domain (usesSEO_CLIENT_DOMAINif not provided)url_path(required): Page URL path (e.g., "/blog/post")schema_type(optional): Specific schema type or "auto" to detect (default: "auto")
Supported schema types:
Article/BlogPosting- Blog posts, articles, newsProduct- Product pages, e-commerceOrganization- About pages, company infoFAQPage- FAQ pages with Q&ABreadcrumbList- Auto-added for navigation
Examples:
Ask Claude: "Generate schema for /blog/indexnow-faster-indexing"
# Auto-detects Article schema
Ask Claude: "Generate Product schema for /products/widget"
generate_schema({ url_path: "/products/widget", schema_type: "Product" })
Ask Claude: "Add structured data to this page"
# If editing a file, Claude will detect the URL and generate schema
What it does:
- Fetches page HTML (local or production)
- Analyzes content (title, description, author, date, images)
- Detects page type from URL patterns and content
- Generates appropriate JSON-LD schema
- Validates schema and warns about placeholders
- Returns ready-to-use code snippets
Response includes:
- Detected page type
- List of recommended schemas
- Generated JSON-LD for each schema
- Validation results with warnings
- Code snippets (Next.js or HTML)
- Implementation instructions
Use cases:
- Fixing "missing schema" warnings from
get_issues - Adding rich snippets for better search visibility
- Enabling Google Discover eligibility (requires Article schema)
- Improving CTR with enhanced search results
Example output:
{
"detected_page_type": "Article",
"recommended_schemas": ["Article", "BreadcrumbList"],
"schemas": [
{
"type": "Article",
"json_ld": { ... },
"validation": {
"valid": false,
"warnings": ["Replace placeholder values with actual data"]
}
}
],
"implementation": {
"where_to_add": "In your page component's metadata",
"code_snippet": "// Next.js code here",
"instructions": "1. Add code to page.tsx..."
}
}
Pro tip: After generating schema, test it with Google Rich Results Test
5. generate_meta ā Enhanced with Client Profile Context
Generate optimized meta tags (title, description, Open Graph tags) for a page. Now uses your client profile to generate highly personalized, business-aware meta tags that align with your target audience, brand voice, and competitive positioning.
Parameters:
domain(optional): Site domain (usesSEO_CLIENT_DOMAINif not provided)url_path(required): Page URL path (e.g., "/blog" or "/blog/post")include_og_tags(optional): Include Open Graph tags for social sharing (default: true)framework(optional): Framework format for code snippet -nextjs,html,astro, orremix(default: "nextjs")
⨠NEW: Client Profile Integration
The tool automatically fetches your client profile and uses context like:
- Target keywords ā Ensures they appear in title/description
- Target audience ā Adjusts tone and technical depth
- Brand voice ā Matches your preferred tone (conversational, technical, formal)
- Differentiators ā Highlights unique selling points for better CTR
- Primary CTA ā Ends description with appropriate call-to-action
Examples:
Ask Claude: "Generate better meta tags for /blog"
# Auto-analyzes content and generates optimized title/description
Ask Claude: "Fix the title too short issue on /blog/post"
generate_meta({ url_path: "/blog/post" })
Ask Claude: "Create meta tags without OG tags for /about"
generate_meta({ url_path: "/about", include_og_tags: false })
Ask Claude: "Generate HTML meta tags for /products/widget"
generate_meta({ url_path: "/products/widget", framework: "html" })
What it does:
- Fetches page HTML (local or production)
- Analyzes current meta tags (title, description)
- Extracts content structure (headings, topics, word count)
- Detects page type (homepage, blog_post, blog_index, product, about)
- Identifies key topics from content
- Returns analysis for AI to generate optimized meta tags
- Provides framework-specific code snippets
Response includes:
- Page analysis:
- Current title and description
- Main heading and all headings
- Word count and content preview
- Detected page type
- Key topics extracted from content
- Images for OG tags
- Current issues:
- Title too short/long
- Meta description too short/long
- Missing meta tags
- AI-generated meta tags:
- Optimized title (50-60 characters)
- Compelling meta description (150-160 characters)
- Open Graph tags (if requested)
- Twitter Card tags (if requested)
- Ready-to-use code for your framework
Use cases:
- Fixing "title too short" or "description too short" warnings
- Improving click-through rate (CTR) from search results
- Optimizing social media sharing (OG tags)
- Aligning meta tags with actual page content
- A/B testing different meta descriptions
Real-World Impact: Before vs. After
Without Profile Context (Generic):
Title: Project Management Software | Company
Description: Manage your projects efficiently with our powerful collaboration platform. Streamline workflows and boost productivity.
With Profile Context (Target audience: developers, Differentiators: "real-time collaboration, 50% faster"):
Title: Real-Time Dev Collaboration | 50% Faster | Company
Description: Built for developers: API-first project management with real-time sync. Ship 50% faster than competitors. Try free for 30 days ā
Profile Warnings System:
If your profile is incomplete, you'll get helpful warnings:
{
"profile_warnings": [
"ā ļø Target audience not set - recommendations will be generic. Add this in your business profile for better results.",
"ā ļø No target keywords set - can't optimize for ranking goals. Add keywords in your business profile.",
"š” Add your differentiators in the business profile to make meta descriptions more compelling.",
"š” Set your brand voice in the business profile to ensure consistent tone."
]
}
Or if no profile exists at all:
{
"profile_warnings": [
"š No client profile found. Fill out your profile at /clients/{id}/profile for personalized recommendations."
]
}
Example workflow:
1. User: "What SEO issues does my site have?"
ā get_issues shows "Title too short on /blog"
2. User: "Fix the title issue on /blog"
ā generate_meta analyzes /blog page
ā Fetches client profile for context
ā Shows warnings if profile incomplete
ā Claude generates optimized, personalized title
ā Returns Next.js code snippet to add to page
3. User copies code to app/blog/page.tsx
4. User: "Re-check SEO for /blog"
ā get_page_seo confirms title is now optimal
Setting Up Your Profile:
To get the most value from generate_meta:
- Visit
/clients/{your-client-id}/profilein the dashboard - Fill out key fields:
- Target Audience (e.g., "developers and technical founders")
- Target Keywords (e.g., "real-time collaboration, dev tools")
- Brand Voice (e.g., "technical but approachable")
- Your Differentiators (e.g., "50% faster than competitors")
- Primary CTA (e.g., "try_free" or "request_demo")
- Use the tool - Profile context is automatically applied
- See better results - Meta tags now match your business context
SEO Best Practices (Built-in):
- Title length: 50-60 characters (includes brand name if space allows)
- Description length: 150-160 characters (compelling call-to-action)
- Keyword placement: Primary keywords near the start
- Uniqueness: Each page gets unique meta tags based on its content
- Accuracy: Meta tags reflect actual page content (no clickbait)
Framework-specific output:
Next.js (App Router):
export const metadata = {
title: "Your Optimized Title | Brand",
description: "Your compelling meta description...",
openGraph: {
title: "Your Optimized Title",
description: "Your compelling meta description...",
images: [{ url: "/path/to/image.jpg" }],
},
};
HTML:
<title>Your Optimized Title | Brand</title>
<meta name="description" content="Your compelling meta description...">
<meta property="og:title" content="Your Optimized Title">
<meta property="og:description" content="Your compelling meta description...">
Pro tips:
- Run after fixing content to ensure meta tags match
- Test social sharing with Facebook Sharing Debugger
- Monitor CTR improvements in Google Search Console
- Update meta tags when page content significantly changes
Development
Watch Mode
npm run watch
This will recompile TypeScript on every change.
Testing Locally
# In one terminal, start your backend
cd /path/to/rampify
npm run dev
# In another terminal, build and run MCP server
cd packages/mcp-server
npm run dev
The MCP server will connect to your local backend at http://localhost:3000.
Debug Logging
Set LOG_LEVEL=debug in your .env file to see detailed logs:
LOG_LEVEL=debug npm run dev
Architecture
MCP Server (packages/mcp-server)
āāā src/
ā āāā index.ts # MCP server entry point
ā āāā config.ts # Configuration loader
ā āāā tools/ # MCP tool implementations
ā ā āāā get-seo-context.ts
ā ā āāā scan-site.ts
ā ā āāā index.ts # Tool registry
ā āāā services/ # Business logic
ā ā āāā api-client.ts # Backend API client
ā ā āāā cache.ts # Caching layer
ā ā āāā url-resolver.ts # File path ā URL mapping
ā āāā utils/
ā ā āāā logger.ts # Logging utility
ā āāā types/ # TypeScript types
ā āāā seo.ts
ā āāā api.ts
āāā build/ # Compiled JavaScript (generated)
Caching
The MCP server caches responses for 1 hour (configurable via CACHE_TTL) to improve performance.
Cache is cleared automatically when:
- Entries expire (TTL reached)
- Server restarts
- You manually clear (not yet implemented)
Troubleshooting
"No client found for domain"
Solution: Add the site to your dashboard first at http://localhost:3000
"Backend API connection failed"
Checklist:
- Is the backend running? (
npm run devin root directory) - Is
BACKEND_API_URLcorrect in.env? - Check logs with
LOG_LEVEL=debug
"MCP server not appearing in Cursor"
Checklist:
- Did you build the server? (
npm run build) - Is the path absolute in Cursor config?
- Restart Cursor after changing config
- Check Cursor logs (Help ā Toggle Developer Tools ā Console)
Empty or missing data
Common causes:
- Site not analyzed yet (run analysis in dashboard first)
- GSC not connected (connect in dashboard settings)
- No URLs in database (trigger site analysis)
"Could not connect to local dev server"
Solution:
- Make sure your dev server is running (
npm run dev) - Verify the port (default is 3000, but yours might be different)
- Use full domain with port:
localhost:3000(not justlocalhost) - Check dev server logs for CORS or other errors
Example error:
Could not connect to local dev server at http://localhost:3000/blog/post.
Make sure your dev server is running (e.g., npm run dev).
Local vs Production Confusion
How to tell which source you're using:
Every response includes explicit source and fetched_from fields:
{
"source": "local_dev_server", // or "production_database"
"fetched_from": "http://localhost:3000/page",
...
}
Pro tip: Set SEO_CLIENT_DOMAIN per project to avoid specifying domain every time:
- For local dev:
SEO_CLIENT_DOMAIN=localhost:3000 - For production:
SEO_CLIENT_DOMAIN=yoursite.com
Roadmap
Phase 1: Core Tools (Complete ā )
- ā
get_page_seo- Get SEO data for a specific page - ā
get_issues- Get all site issues with health score - ā
crawl_site- Trigger fresh site crawl - ā
generate_schema- Auto-generate structured data (Article, Product, etc.) - ā
generate_meta- AI-powered title and meta description generation
Phase 2: Workflow & Optimization Tools (Planned š)
- š
suggest_internal_links- Internal linking recommendations - š
check_before_deploy- Pre-deployment SEO validation - š
optimize_blog_post- Deep optimization for blog content - š
optimize_landing_page- Conversion-focused SEO
Future (Phase 4+)
- Bulk operations across multiple pages
- Historical trend analysis
- Competitive monitoring
- Advanced AI insights and recommendations
Support
For issues or questions:
- GitHub Issues: https://github.com/rampify/mcp-server/issues
- Documentation: https://www.rampify.dev/docs/mcp-server
License
MIT