Skip to content

Host several MCP in one ASP.Net application #611

Closed as duplicate
Closed as duplicate

Description

@wesley-wws

Is your feature request related to a problem? Please describe.
Currently, I have multiple streamable MCP services, and deploying them is using too many server ports. Is there a way to consolidate multiple streamable MCP servers within a single ASP.NET application to reduce port usage?

Describe the solution you'd like
Could we add a property like Name, to [McpServerToolType] and use routing to differentiate which MCP service to connect to?

For example, carried by the following two classes with different Tools:

[McpServerToolType("Foo")]
class Foo {...}

[McpServerToolType("Bar")]
class Bar {...}

After calling app.MapMcp("mcp"), connecting to /mcp/Foo and /mcp/Bar can use different tools.

Activity

  1. Carl-Hugo commented on Feb 23, 2026

    @Carl-Hugo

    Check #612 (comment) and let me know if that helps.

  2. added
    questionFurther information is requested
    and removed
    enhancementNew feature or request
    on Feb 24, 2026
  3. jeffhandley commented on Jul 19, 2026

    @jeffhandley
    Contributor

    Duplicate of #1202 -- both are about hosting multiple MCP servers/endpoints in a single ASP.NET process (there via keyed services and multiple MapMcp calls, with maintainer discussion). Let's consolidate the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs confirmationUnclear if still relevantquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions