10 MCP Server Configuration Recipes for Real-World APIs
These copy-paste recipes cover the most popular MCP server configurations. Each includes the JSON config, install command, and auth setup. For the full reference, visit the directory or each API's detail page.
GitHub
Config page →Manage repos, issues, PRs, and workflows through AI.
Install command:
npx -y @modelcontextprotocol/server-githubConfig:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "<your-token>" }
}
}
}Auth:
GitHub Personal Access Token (classic, with repo scope)
Stripe
Config page →Manage payments, subscriptions, and invoices.
Install command:
npx -y @modelcontextprotocol/server-stripeConfig:
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-stripe"],
"env": { "STRIPE_API_KEY": "<your-secret-key>" }
}
}
}Auth:
Stripe Secret Key (sk_test_ or sk_live_)
Slack
Config page →Send messages, search channels, manage workspace.
Install command:
npx -y @modelcontextprotocol/server-slackConfig:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-slack"],
"env": { "SLACK_BOT_TOKEN": "<xoxb-token>" }
}
}
}Auth:
Slack Bot Token (xoxb-) with chat:write, channels:read scopes
PostgreSQL
Config page →Query tables, inspect schemas, run migrations.
Install command:
npx -y @modelcontextprotocol/server-postgresConfig:
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": { "DATABASE_URL": "postgresql://user:pass@host:5432/db" }
}
}
}Auth:
Database connection string (no API key needed for local DBs)
OpenAI
Config page →Generate text, images, and embeddings via MCP.
Install command:
npx -y @modelcontextprotocol/server-openaiConfig:
{
"mcpServers": {
"openai": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-openai"],
"env": { "OPENAI_API_KEY": "<your-key>" }
}
}
}Auth:
OpenAI API Key (sk-proj-...)
Notion
Config page →Create pages, query databases, manage blocks.
Install command:
npx -y @modelcontextprotocol/server-notionConfig:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-notion"],
"env": { "NOTION_TOKEN": "<integration-token>" }
}
}
}Auth:
Notion Internal Integration Token (secret_...)
Supabase
Config page →Manage databases, auth, and edge functions.
Install command:
npx -y @supabase/mcp-serverConfig:
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": ["-y", "@supabase/mcp-server"],
"env": {
"SUPABASE_URL": "<project-url>",
"SUPABASE_SERVICE_KEY": "<service-role-key>"
}
}
}
}Auth:
Supabase project URL + service_role key
Cloudflare
Config page →Manage Workers, KV, R2, D1, and DNS.
Install command:
npx -y @cloudflare/mcp-serverConfig:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "@cloudflare/mcp-server"],
"env": {
"CLOUDFLARE_API_TOKEN": "<api-token>",
"CLOUDFLARE_ACCOUNT_ID": "<account-id>"
}
}
}
}Auth:
Cloudflare API Token (with appropriate permissions)
Figma
Config page →Access design files, components, and styles.
Install command:
npx -y @modelcontextprotocol/server-figmaConfig:
{
"mcpServers": {
"figma": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-figma"],
"env": { "FIGMA_ACCESS_TOKEN": "<personal-access-token>" }
}
}
}Auth:
Figma Personal Access Token
Linear
Config page →Manage issues, sprints, and team workflows.
Install command:
npx -y @linear/mcp-serverConfig:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "@linear/mcp-server"],
"env": { "LINEAR_API_KEY": "<api-key>" }
}
}
}Auth:
Linear API Key (from Settings > API)
How to Use These
- Find the API you want to connect
- Obtain the required API key or token
- Paste the config into
claude_desktop_config.json - Replace placeholders with your actual credentials
- Restart Claude Desktop and start using the API through natural language
Missing an API? Check the full directory with 1,000+ APIs or use the converter tool to convert any OpenAPI spec.