Skip to main content
Just ask your agent. The easiest way to connect MCP servers is to tell your agent what you need:
  • “Connect to the Exa search MCP server”
  • “Add my local filesystem to this workspace”
  • “Set up the SQLite MCP server for my database”
The agent handles configuration and authentication automatically.
This guide shows you how to connect MCP servers as sources, giving your agents access to external tools and services.

Source Configuration Schema

MCP servers are configured using a standardized source configuration:

Remote Servers (HTTP/SSE)

For MCP servers accessible over the network, use HTTP transport:
HTTP transport automatically supports both Streamable HTTP and Server-Sent Events (SSE) protocols based on what the server provides.

Local Servers (Stdio)

For MCP servers that run locally on your machine, use stdio transport:

Common Local Server Patterns

NPX packages:
Node.js scripts:
Python scripts:
Binary executables:

Multiple Servers

You can configure multiple MCP sources in your workspace. Each source becomes available with its tools prefixed by the source name:

Server Discovery

When you connect an MCP source, Craft Agents:
  1. Connects to the server using the configured transport
  2. Queries available tools from the server
  3. Makes tools available with prefixed names (e.g., exa_search, github_list_repos)
View connected tools with:

Refreshing Connections

If a server’s tools change or you need to reconnect:
This re-establishes the MCP connection and refreshes available tools.

Troubleshooting

  • Verify the URL is correct and accessible (for HTTP transport)
  • Check if the command exists and is in PATH (for stdio transport)
  • Check if the server requires authentication
  • Ensure your network allows the connection
  • Try accessing the URL directly in a browser (for HTTP)
  • Click the source in the sidebar to view its status
  • Restart Craft Agents to reload connections
  • Verify the configuration syntax is correct
  • Check server logs for errors
  • Confirm your API key or token is correct
  • Check if the key has the required permissions
  • Some servers need specific scopes - check their documentation
  • Verify the authType matches what the server expects
  • Verify the command exists: which npx or which node
  • Check the arguments are correct
  • Try running the command manually in terminal to see errors
  • Ensure required dependencies are installed

Best Practices

Choose source names that describe their purpose: web-search, github-repo, company-wiki rather than server1, server2.
Include a tagline that explains what the server does - this helps when browsing available sources.
Set icon to make sources visually identifiable in the UI. You can use a URL, an emoji, or place an icon.svg or icon.png file in the source folder.
Connect only the sources your workspace needs. Too many tools can increase response latency and confuse the model about which to use.

Next Steps

Configure authentication

Learn about OAuth, bearer tokens, and public authentication for MCP servers.