Your First Server
A detailed walkthrough to create, test, and deploy your first MCP server.
What You'll Build
By the end of this guide, you'll have:
- ✅ A custom web search tool
- ✅ An MCP server with your tool
- ✅ A working API key
- ✅ Tested the server in Chat
- ✅ Connected to Cursor IDE
Estimated time: 15 minutes
Step 1: Choose Your Tools
Let's start with a simple but useful tool: Google Search.
- Navigate to Tools in the dashboard
- Use the search bar or browse categories
- Find "Google Search" (in the Web Search category)
- Click on it to see details:
- What it does
- Parameters it accepts
- Example usage
- Credit cost
Step 2: Create a Custom Tool
Now configure your instance of Google Search.
- Click "Create Custom Tool" on the Google Search page
- Fill in the details:
Name: My Web Search
Description: Search Google for recent information
-
(Optional) Set parameter overrides:
- num_results: 5 (return top 5 results)
- time_range: "past_month" (recent results)
-
Click "Create Custom Tool"
Your custom tool is now ready! You can:
- View it in Tools → My Tools
- Edit configuration anytime
- Use it in multiple servers
Step 3: Create Your Server
Now bundle your custom tool into an MCP server.
- Navigate to Servers
- Click "Create Server"
- Configure:
Name: My First Server
Description: A simple search server for testing
-
In "Select Custom Tools":
- Search for "My Web Search"
- Click to add it
-
Under "API Key Configuration":
- Enable "Auto-generate API Key"
- Name it: "Development Key"
-
Click "Create Server"
Your server is now live! 🎉
Step 4: Copy Your API Key
You'll need this key to authenticate.
- After creation, you'll see your new API key
- Copy it immediately (it's only shown once)
- Store it securely (e.g., password manager)
Format: mcpk_xxxxxxxxxxxxxxxxxxxxx
Lost your key? You can create a new one in Server Settings → API Keys.
Step 5: Test in Chat
Let's verify your server works.
- Navigate to Chat
- Select "My First Server" from the dropdown
- Type a message:
Search the web for "latest developments in AI safety"
- Watch the AI:
- Call your
My Web Searchtool - Display search results
- Synthesize an answer
- Call your
Expected behavior:
- Tool call shown with parameters
- Results returned with URLs
- Credits deducted (check your balance)
Step 6: Test in API Playground
For more control, use the Playground.
- Go to your server page: Servers → My First Server
- Click "Playground" tab
- Select "Tool Call" action
- Choose "My Web Search" tool
- Set parameters:
{
"query": "best practices for MCP integration"
}
- Click "Test Call"
Response:
- Status code
- Execution time
- Results (JSON)
- Credits used
This is useful for:
- Debugging parameter issues
- Testing without AI
- Understanding raw responses
Step 7: View MCP Configuration
Get your server's MCP config for IDE integration.
- On your server page, click "MCP Config" tab
- You'll see something like:
{
"mcpServers": {
"my-first-server": {
"url": "https://api.joinreeva.com/mcp/server_abc123",
"apiKey": "mcpk_xxxxxxxxxxxxxxxxxxxxx"
}
}
}
- Click "Copy Configuration"
This config tells IDEs how to connect to your server.
Step 8: Connect to Cursor
Now use your server in Cursor IDE.
Add Configuration
- Open Cursor
- Open Settings:
Cmd+,(Mac) orCtrl+,(Windows/Linux) - Navigate to: Features → MCP
- Click "Edit Config" or "Add Server"
- Paste your MCP configuration
- Save
Verify Connection
-
Open Cursor terminal
-
Check MCP servers are loaded:
- Look for "MCP Connected" indicator
- Or check Cursor's MCP panel
-
Test in a file:
- Open any file
- Start chatting with Cursor AI
- Ask: "Search the web for Python async best practices"
-
Observe:
- AI uses your tool automatically
- Results appear in chat
- Context is added to the conversation
Success! Your tool is now available to Cursor's AI.
Step 9: Monitor Usage
Track how your server is being used.
- Go to Usage
- View:
- Tool calls: Which tools were executed
- Credit usage: How many credits consumed
- Timestamps: When calls occurred
- Responses: Success/failure status
This helps you:
- Understand usage patterns
- Optimize credit spending
- Debug issues
Common First-Time Issues
"Insufficient credits"
- Check your credit balance
- Purchase credits in Usage → Buy Credits
- New accounts start with free trial credits
"Authentication failed"
- Verify API key is correct (no extra spaces)
- Check key is linked to the right server
- Try generating a new key
"Tool not found"
- Ensure custom tool is added to server
- Refresh your IDE's MCP configuration
- Check tool name spelling
Cursor not recognizing server
- Restart Cursor after adding config
- Verify JSON syntax is valid
- Check MCP panel for error messages
Next Steps
Congratulations! You've created and deployed your first MCP server.
Add More Tools
Expand your server's capabilities:
- Firecrawl - Scrape websites
- Notion - Access your workspace
- Perplexity - AI-powered search
Learn Advanced Features
- Manage Credentials - Link authenticated services
- API Keys - Advanced key management
- Testing Guide - Comprehensive testing strategies
Use the API
Build programmatically:
Deploy to Other IDEs
Summary
You've learned to:
- ✅ Choose and understand base tools
- ✅ Create configured custom tools
- ✅ Build an MCP server
- ✅ Generate API keys
- ✅ Test with Chat and Playground
- ✅ Get MCP configuration
- ✅ Connect to Cursor IDE
- ✅ Monitor usage
You're now ready to build more advanced servers with multiple tools!
Need Help?
- Stuck? See Troubleshooting
- Questions? Check the FAQ
- Feedback? We'd love to hear how it went!