ESC
Start typing to search...

MCP Servers

Connect Model Context Protocol (MCP) servers to extend your agent with external tools and resources.

What is MCP?

The Model Context Protocol is an open standard for connecting AI models to external tools and data sources. Teleton supports MCP servers to:

  • Connect to existing MCP-compatible tools
  • Access external databases and APIs
  • Share tools across multiple agents
  • Use community-built MCP servers

Configuration

config.yaml
mcp:
  servers:
    - name: filesystem
      command: npx
      args: ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/files"]

    - name: github
      command: npx
      args: ["-y", "@modelcontextprotocol/server-github"]
      env:
        GITHUB_TOKEN: ${GITHUB_TOKEN}

    - name: postgres
      command: npx
      args: ["-y", "@modelcontextprotocol/server-postgres"]
      env:
        DATABASE_URL: ${DATABASE_URL}

Using MCP Tools

Once configured, MCP tools appear alongside native tools. The agent automatically discovers and uses them:

Example Chat
You: Read the README.md file from my project
Agent: [Uses filesystem:readFile tool]
       Here's the content of README.md...

Custom MCP Server

You can also connect to custom MCP servers:

config.yaml
mcp:
  servers:
    - name: my-server
      command: node
      args: ["./my-mcp-server/index.js"]
      env:
        API_KEY: ${MY_API_KEY}

Use the official MCP SDK to build custom servers: npm install @modelcontextprotocol/sdk