MCP Integration with Smithery.ai

Connect your Agent5ive agent to MCP servers hosted on Smithery.ai

Overview

Smithery.ai is a platform that hosts and manages Model Context Protocol (MCP) servers, making it easy to discover and connect to powerful tools and integrations. This tutorial will guide you through:

  • Finding MCP servers on Smithery.ai
  • Getting the correct MCP server URLs
  • Understanding streamable/SSE connections
  • Integrating Smithery MCP servers with Agent5ive
  • Testing and troubleshooting connections

What is Smithery.ai?

Smithery.ai allows you to build, find, and use MCP servers. They host popular MCP servers including:

  • Exa - Search the live web, access LinkedIn profiles, do deep research
  • Context7 - Reference the latest docs for major SDKs and frameworks
  • Browserbase - Control a remote web browser using Stagehand
  • And many more community-contributed servers

Prerequisites

  • An Agent5ive account with agent creation access
  • Basic understanding of MCP (Model Context Protocol)
  • Internet connection for accessing Smithery.ai

Step-by-Step Guide

1

Browse Smithery.ai MCP Servers

Visit smithery.ai to browse available MCP servers. You can search for specific functionality or browse by category.

2

Select an MCP Server

Click on any MCP server that interests you. Each server page shows:

  • Description of what the server does
  • Available tools and functions
  • Usage examples
  • Connection instructions

For this example, let's use the Context7 server which provides access to documentation for popular frameworks.

3

Get the MCP Server URL

On the server page, look for the connection details. Smithery provides different connection methods:

  • HTTP/HTTPS URLs - For direct HTTP connections
  • Streamable URLs - For Server-Sent Events (SSE) connections

For Agent5ive integration, you'll use the HTTP/HTTPS URL with embedded keys which looks like:

https://smithery.ai/server/@upstash/context7-mcp?key=your_auth_key_here

4

Understanding Streamable/SSE Connections

Smithery.ai supports Server-Sent Events (SSE) for real-time streaming responses. This is particularly useful for:

  • Long-running operations - Tasks that take time to complete
  • Progressive responses - Getting partial results as they become available
  • Real-time updates - Live data feeds and notifications

Agent5ive automatically handles SSE connections when the MCP server supports them. The connection type is determined by the server's capabilities.

How SSE Works with Agent5ive:

  1. Agent5ive sends a request to the MCP server
  2. Server responds with streaming data chunks
  3. Agent5ive processes each chunk as it arrives
  4. Final response is assembled from all chunks

5

Configure Your Agent5ive Agent

Now let's integrate the Smithery MCP server with your Agent5ive agent:

  1. Log in to your Agent5ive account
  2. Create a new agent or edit an existing one
  3. Navigate to the "Tools" section during agent creation/editing
  4. Expand the "Advanced Tools (MCP - Experimental)" section
  5. Toggle on "Enable Advanced Tools (via MCP Server)"
  6. Paste the MCP Server URL you copied from Smithery
  7. Click the "Validate" button to verify the connection

6

Test the Integration

After deploying your agent, test the MCP integration with relevant prompts based on the server's capabilities.

Example Prompts for Context7:

  • "/context7 how do I use React hooks?"
  • "/context7 Next.js app router documentation"
  • "/context7 TypeScript utility types"

Example Prompts for Exa (Web Search):

  • "Search for the latest AI research papers"
  • "Find recent news about renewable energy"
  • "Look up information about quantum computing"

Advanced Configuration

Environment Variables

Some Smithery MCP servers may require additional configuration through environment variables:

VariableRequiredDescription
API_KEYSometimesAPI key for servers that require authentication (use \"Get URL with keys instead\" option instead)
SERVER_TOKENSometimesServer-specific authentication token (use \"Get URL with keys instead\" option instead)

Connection Types

Smithery supports multiple connection protocols:

  • HTTP/HTTPS - Standard request-response pattern
  • Server-Sent Events (SSE) - Streaming responses for real-time data

Agent5ive automatically detects and uses the appropriate connection type based on the server's capabilities.

Troubleshooting

Connection Fails

If the MCP server connection fails:

  • Verify the URL is correct and accessible
  • Make sure you used \"Get URL with keys instead\" - OAuth authentication is not supported
  • Check if the server requires authentication
  • Ensure your network allows outbound connections to Smithery.ai
  • Try a different server to isolate the issue

Server Not Responding

If the server doesn't respond to requests:

  • Check the server status on Smithery.ai
  • Verify you're using the correct tool names and parameters
  • Review the server's documentation for usage examples
  • Check for rate limiting or quota restrictions

Streaming Issues

If SSE/streaming connections have problems:

  • Ensure your network supports Server-Sent Events
  • Check for proxy or firewall interference
  • Try using the HTTP endpoint instead of streaming
  • Verify the server supports the streaming protocol

Popular Smithery MCP Servers

Context7 (Upstash)

Access documentation for major SDKs and frameworks directly in your agent

View on Smithery

Exa Search

Advanced web search with LinkedIn profiles and deep research capabilities

View on Smithery

Browserbase

Control remote web browsers for automation and web scraping

View on Smithery

GitHub MCP

Interact with GitHub repositories, issues, and pull requests

View on Smithery

Quick Start: Copy any of the URLs above and paste them directly into your Agent5ive MCP configuration.

Next Steps

Now that you've connected to Smithery MCP servers, consider:

  • Explore multiple servers - Combine different MCP servers for powerful agent capabilities
  • Create specialized agents - Build agents focused on specific use cases using relevant MCP tools
  • Monitor usage - Keep track of API calls and rate limits for external services
  • Contribute back - Consider creating your own MCP servers and sharing them on Smithery

For more information about the agent5ive-mcp package, visit the NPM package page .